This method retrieves the resolution from the device context.
[C++Builder] [ bool =
]imagekitcontrolname->GetDpiFromHdc(HDC DC, int
&Xdpi, int &Ydpi)
[Delphi] [ Boolean =
]imagekitcontrolname.GetDpiFromHdc(DC: HDC; var Xdpi,
Ydpi: Integer)
Parameters
Name | Explanation |
---|---|
DC | 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 if successful, otherwise returns False.
Explanation
The GetDpiFromHdc method retrieves the resolution from the device context.