Device capabilities

Device capabilities

DRIVERVERSION

Device driver version.

TECHNOLOGY

Device classification.

HORZSIZE

Width, in millimetres, of the physical screen.

VERTSIZE

Height, in millimetres, of the physical screen.

HORZRES

Width, in pixels, of the screen.

VERTRES

Height, in raster lines, of the screen.

BITSPIXEL

Number of adjacent colour bits for each pixel.

PLANES

Number of colour planes.

NUMBRUSHES

Number of device-specific brushes.

NUMPENS

Number of device-specific pens.

NUMMARKERS

Number of device-specific markers.

NUMFONTS

Number of device-specific fonts.

NUMCOLORS

Number of entries in the device’s colour table, if the device has a colour depth of no more than 8 bits per pixel. For devices with greater colour depths, 1 is returned.

PDEVICESIZE

Size required for device descriptor

CURVECAPS

Curve capabilities of the device.

LINECAPS

Line capabilities of the device.

POLYGONALCAPS

Polygonal capabilities of the device.

TEXTCAPS

Text capabilities of the device.

CLIPCAPS

Flag that indicates the clipping capabilities of the device. If the device can clip to a rectangle, it is 1. Otherwise, it is 0.

RASTERCAPS

Raster capabilities of the device.

ASPECTX

Relative width of a device pixel used for line drawing.

ASPECTY

Relative height of a device pixel used for line drawing.

ASPECTXY

Diagonal width of the device pixel used for line drawing.

LOGPIXELSX

Number of pixels per logical inch along the screen width. In a system with multiple display monitors, this value is the same for all monitors.

LOGPIXELSY

Number of pixels per logical inch along the screen height. In a system with multiple display monitors, this value is the same for all monitors.

SIZEPALETTE

Number of entries in the system palette.

NUMRESERVED

Number of reserved entries in the system palette.

COLORRES

Actual colour resolution of the device, in bits per pixel.

PHYSICALWIDTH

For printing devices: the width of the physical page, in device units.

PHYSICALHEIGHT

For printing devices: the height of the physical page, in device units.

PHYSICALOFFSETX

For printing devices: the distance from the left edge of the physical page to the left edge of the printable area, in device units.

PHYSICALOFFSETY

For printing devices: the distance from the top edge of the physical page to the top edge of the printable area, in device units.

SCALINGFACTORX

Scaling factor for the x-axis of the printer.

SCALINGFACTORY

Scaling factor for the y-axis of the printer.

These values are used by the function GetDeviceCaps(), which interrogates a device (the windows device driver of the graphic display, or the current printer) returning the value of the specified capability. See the MSDN Library documentation on the GetDeviceCaps function for further information.


RELATED TOPICS

Drawing operations