[Visual Basic] [ Boolean
= ]imagekitcontrolname.GetDpiFromHdc(hDC As Long,
Xdpi As Long, Ydpi As Long)
[Visual C++] [
BOOL = ]imagekitcontrolname.GetDpiFromHdc(long
hDC, long *Xdpi, long *Ydpi)
Parameters
Name | Explanation |
---|---|
hDC | The Device Context |
Xdpi | The horizontal resolution (Number of pixels per horizontal inch) |
Ydpi | The vertical resolution (Number of pixels per vertical inch) |
Return Value
Returns True (nonzero) if successful, otherwise returns False (0).
Explanation
The GetDpiFromHdc method retrieves the resolution from the device context.
For scripting languages and other programs that require variant types, please refer to the GetDpiFromHdcVariant method.