Image.width Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;