This function sets a new value in the resolution property of an image.
[C++Builder/Visual
C++] BOOL IKSetDpi(HANDLE Handle, long
Xdpi, long Ydpi);
[Delphi] function
IKSetDpi(Handle: THandle; Xdpi, Ydpi: Longint): LongBool;
[Visual Basic] Function
IKSetDpi(ByVal Handle As Long, ByVal Xdpi As Long, ByVal Ydpi As
Long) 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 IKSetDpi function sets a new value in the resolution property of an image. 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.