This function retrieves the value of resolution property of an image. (Float value)
[C++Builder] BOOL
IKGetDpiF(HANDLE Handle, float *Xdpi, float *Ydpi);
[Delphi] function
IKGetDpiF(Handle: THandle; var Xdpi, Ydpi: Single): 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 IKGetDpiF function retrieves the value of resolution property of an image. The resolution value is a float type value. 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.