Jaa


Image.imageInfo Method

Definition

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

public:
 virtual cli::array <System::Object ^> ^ imageInfo();
public virtual object[] imageInfo ();
abstract member imageInfo : unit -> obj[]
override this.imageInfo : unit -> obj[]
Public Overridable Function imageInfo () As Object()

Returns

Object[]

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

Remarks

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;

Applies to