Share via


Image.height Method

Retrieves the height of the image in pixels.

Syntax

public int height()

Run On

Client

Return Value

Type: int
An integer that represents the height of the image in pixels.

Examples

The following example prints out the height of the image that is contained in test.bmp.

Image img = new Image(); 
 
img.loadFile(@'C:\test.bmp'); 
print img.height(); 
pause;

See Also

Image Class

Image.imageInfo Method

Image.width Method