This method retrieves the resolution from the device context.  
[Visual Basic]   [ Boolean = ]imagekitcontrolname.GetDpiFromHdcVariant(hDC As Long, Xdpi As Variant, Ydpi As Variant)

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 GetDpiFromHdcVariant method retrieves the resolution from the device context.

 

This method is recommended when using scripting or other languages that require variant types. Also see the GetDpiFromHdc method.

 

The ImageKit8 ActiveX is a product created by Newtone Corporation