Image.width Method

Definition

Retrieves the width of the image in pixels.

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

Returns

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

Remarks

The following example prints out the width of the image in the test.bmp file.

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

Applies to