PhysicalDimension: IGxSizeF;
The PhysicalDimension property returns resolution of the image in pixels per inch.
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;
Resolution: IGxSizeF;
Begin
Image := ImageBox1.Image;
Resolution := Image.PhysicalDimension;
End Sub Button1OnClick;
After executing the example on clicking the button the Resolution variable contains resolution of the image loaded to the ImageBox1 component.
See also: