TWidgetSet.GetDeviceCaps function
Returns various device specific information.
Declaration
function GetDeviceCaps(DC: HDC; Index: Integer): Integer; virtualArguments
DC | The device context. |
Index | The value type, e.g. HORZRES. |
Function result
The requested value.
Description
The following information can be retrieved:
- HORZSIZE
- Horizontal size in millimeters.
- VERTSIZE
- Vertical size in millimeters.
- HORZRES
- Horizontal width in pixels.
- VERTRES
- Vertical height in pixels.
- BITSPIXEL
- Number of bits per pixel.
- PLANES
- Number of color planes.
- LOGPIXELSX
- The number of pixels per logical inch, in X (horizontal) direction.
- LOGPIXELSY
- The number of pixels per logical inch, in Y (vertical) direction.
- SIZEPALETTE
- Number of entries in the color palette.
- NUMRESERVED
- Number of reserved entries in the color palette.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
