Optional Graphics Driver Functions

In the interests of reducing driver size, drivers usually add only those optional functions that are well-supported in hardware. If a driver is written for hardware that supports these specialized functions, the appropriate functions in the following table can be included.

Entry Point

Description

DrvCreateDeviceBitmap

Creates and manages a bitmap with a driver-defined format.

DrvDeleteDeviceBitmap

Deletes a device-managed bitmap.

DrvDitherColor

Requests a device to create a brush dithered against a device palette.

DrvFillPath

Paints a closed path for a device-managed surface.

DrvMovePointer

Moves a pointer to a new position, and redraws it.

DrvBitBlt

Executes general bit block transfers to and from surfaces.

DrvRealizeBrush

Realizes a specified brush for a defined surface.

DrvSaveScreenBits

Saves or restores a specified rectangle of the screen (display driver only).

DrvSetPointerShape

Removes the pointer from the screen, if the driver has drawn it, and then sets a new pointer shape.

DrvStretchBlt

Allows stretching block transfers among device-managed and GDI-managed surfaces.

DrvStrokeAndFillPath

Simultaneously fills and strokes a path.

DrvSynchronize

Coordinates drawing operations between GDI and a display driver-supported coprocessor device; for engine-managed surfaces only.

DrvFree

Frees font storage associated with an indicated data structure.

DrvDestroyFont

Notifies driver that a font realization is no longer needed; driver can free allocated data structures.

DrvEscape

Queries information from a device not available in a device-independent DDI.

DrvDrawEscape

Implements draw-type escape functions.

DrvEndDoc

Sends end-of-document information. (printer driver)

DrvGetGlyphMode

Returns type of font information to be stored for a particular font. (printer driver)

DrvSendPage

Sends raw bits from a surface to the printer. (printer driver)

DrvStartDoc

Sends start-of-document control information. (printer driver)

DrvStartPage

Sends start-of-page control information. (printer driver)

DrvFontManagement

Allows access to printer functionality not directly available through GDI. (printer driver)

DrvQueryAdvanceWidths

Supplies character advance widths for a specified set of glyphs. (font driver)

DrvLineTo

Draws a single solid integer-only cosmetic line.

DrvNextBand

Realizes the contents of a surface’s just-drawn band.

DrvStartBanding

Prepares the driver for banding.