Image.imageInfo Method

Retrieves the width, height, and color depth of the image.

Syntax

public container imageInfo()

Run On

Client

Return Value

Type: container
A container that holds values that specify the width of the image, the height of the image, and the number of bits per pixel.

Examples

The following example prints out the width and height of the image test.bmp, and specifies the color depth in bits per pixel.

Image img = new Image(); 
container c; 
 
img.loadFile(@'C:\Test.bmp'); 
c = img.imageInfo(); 
print con2str(c); 
pause;

See Also

Image Class

Image.height Method

Image.width Method