This function retrieves the resolution from the screen or printer device context.

[C++Builder]     BOOL IKGetDpiFromHdc(HDC hDC, long *Xdpi, long *Ydpi);
[Delphi]         function IKGetDpiFromHdc(hDC: HDC; var Xdpi, Ydpi: Longint): LongBool;

Parameters

Name Explanation
hDC The Device Context
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 IKGetDpiFromHdc method retrieves the resolution from the screen or printer device context. If successful, the horizontal and vertical resolution values are returned in the Xdpi and Ydpi parameters.

 

The ImageKit10 VCL is a product created by Newtone Corporation