This function sets a new value in the resolution property of an image. (Float)
[C++Builder/Visual
C++] BOOL IKSetDpiF(HANDLE Handle,
float Xdpi, float Ydpi);
[Delphi] function
IKSetDpiF(Handle: THandle; Xdpi, Ydpi: Single): LongBool;
[Visual Basic] Function
IKSetDpiF(ByVal Handle As Long, ByVal Xdpi As Single, ByVal Ydpi As
Single) As Long
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 (nonzero) if successful, returns False (0) 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.