This function retrieves the value of resolution property of an image.

[C++Builder]   BOOL IKGetDpi(HANDLE Handle, long *Xdpi, long *Ydpi);
[Delphi]   function IKGetDpi(Handle: THandle; var Xdpi, Ydpi: Longint): LongBool;

Parameters

Name Explanation
Handle The image handle of the raster image.
Xdpi The horizontal resolution value. (The number of pixels in one horizontal inch)
Ydpi The vertical resolution value. (The number of pixels in one vertical inch)

Return Value

Returns True if successful, returns False if not successful

Explanation

The IKGetDpi function retrieves the value of resolution property of an image. If successful, the horizontal and vertical resolution values are returned in the Xdpi and Ydpi parameters. It should be noted that this is not the resolution of the image but rather it is the value set in the image's resolution property. The creator of the image can set any value in this property.

 

The ImageKit10 VCL is a product created by Newtone Corporation