This function sets a new value in the resolution property of an image. (Float)

[C++Builder]     BOOL IKSetDpiF(HANDLE Handle, float Xdpi, float Ydpi);
[Delphi]         function IKSetDpiF(Handle: THandle; 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 IKSetDpiF function sets a new value in the resolution property of an image. The value is a float type. If successful, the horizontal and vertical resolution values in the Xdpi and Ydpi parameters are set in the image's resolution property. It should be noted that this does not set the resolution of the image but rather it sets the value of the image's resolution property.

 

The ImageKit10 VCL is a product created by Newtone Corporation