Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
GDI Information Structure
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
Every printer driver must have a GDIINFO structure that specifies the
printer's capabilities and characteristics. GDI uses this information to
determine what the printer can do and how much GDI must do to support
graphics output to the printer. The GDI information can be classified as
follows:
 
♦  Driver management
 
♦  Driver capabilities
 
♦  Device dimensions
 
The driver-management information specifies the version of Windows for which
the driver was written, the type of technology the printer uses to generate
output, the size in bytes of the printer's PDEVICE structure, and number of
device contexts the driver can manage at the same time.
 
The driver-capabilities information specifies the capabilities of the
device, such as whether the printer can draw polygons and ellipses, scale
text, and clip output. Driver capabilities also specify the number of device
brushes, pens, fonts, and colors available on the printer and whether the
printer can handle bitmaps and color palettes.
 
The device-dimension information specifies the maximum width and height of
the printable area in both millimeters and device units, the number of color
bits or planes, the aspect ratio, the minimum length of a dot in a styled
line, and the number of device units or pixels per inch.
 
 
                                      ♦