This method retrieves the resolution from the device context. 
[Visual Basic]   [ Boolean = ]imagekitcontrolname.GetDpiFromHdc(hDC As LONG_PTR, Xdpi As Long, Ydpi As Long)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetDpiFromHdc(LONG_PTR hDC, long *Xdpi, long *Ydpi)
[VB.NET]   [ Boolean = ]imagekitcontrolname.GetDpiFromHdc(hDC As Integer(x86) or Long(x64), ByRef Xdpi As Integer, ByRef Ydpi As Integer)
[C#.NET]   [ bool = ]imagekitcontrolname.GetDpiFromHdc(int(x86) or long(x64) hDC, ref int Xdpi, ref int Ydpi)

(x86) refers to the 32 bit version, (x64) refers to the 64 bit version

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.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation