[Overview][Types][Procedures and functions][Variables][Index] |
Returns various device specific informations.
Source position: winapih.inc line 123
function GetDeviceCaps( |
DC: HDC; |
Index: Integer |
):Integer; |
Returns informations about any DC, which might be the screen DC representing the monitor, a control canvas or a offscreen bitmap canvas. The following constants can be utilized in the index argument:
An example showing how to obtain the screen DPI for the X axis using GetDeviceCaps, which is the method utilized by TScreen.PixelsPerInch: var DC: HDC; begin DC := GetDC(0); FDPI := GetDeviceCaps(DC,LOGPIXELSX); // DPI in pixels per inch ReleaseDC(0, DC); end;
|
The number of screen pixels for an virtual inch (DPI), in vertical direction. |
|
|
Horizontal size in millimeters |
|
|
Vertical size in millimeters. |
|
|
Horizontal width in pixels |
|
|
Number of bits per pixel |
|
|
Number of color planes. |
|
|
Number of entries in the color palette |
|
|
The number of pixels per logical inch, in X (horizontal) direction. |
|
|
The number of pixels per logical inch, in Y (vertical) direction. |
|
|
Vertical height in pixels |
|
|
Number of reserved entries in the color palette |
lazarus-ccr.sourceforge.net |