IGxImage.Width

Syntax

Width: Integer;

Description

The Width property returns image width in pixels.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Image: IGxImage;

i: Integer;

Begin

Image:=ImageBox1.Image;

i:=Image.Width;

End Sub Button1OnClick;

After executing the example on clicking the button the "i" variable contains width of the image in pixels, which is stored in the component named ImageBox1.

See also:

IGxImage