IGxImage.HorizontalResolution

Syntax

HorizontalResolution: Double;

Description

The HorizontalResolution property returns horizontal resolution of the image in points per inch.

Example

Executing the example requires a form that contains a button named Button1 and the ImageBox component named ImageBox1. An image is loaded to the ImagBox1 component.

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

Var

Image: IGxImage;

hRes: Double;

Begin

Image := ImageBox1.Image;

hRes := Image.HorizontalResolution;

End Sub Button1OnClick;

After executing the example on clicking the button the hRes variable contains horizontal resolution of the image loaded to the ImageBox1 component.

See also:

IGxImage