Share via


Image.height Method

Definition

Retrieves the height of the image in pixels.

public:
 virtual int height();
public virtual int height ();
abstract member height : unit -> int
override this.height : unit -> int
Public Overridable Function height () As Integer

Returns

An integer that represents the height of the image in pixels.

Remarks

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;

Applies to