Chapter 2 Graphics Device Interface Functions

This chapter describes the functions that perform device-independent graphics operations within a Windows application, including creating a wide variety of line, text, and bitmap output on many output devices. These functions constitute the Windows graphics device interface (GDI).

The chapter covers the following function categories:

Device-context functions

Drawing-tool functions

Color-palette functions

Drawing-attribute functions

Mapping functions

Coordinate functions

Region functions

Clipping functions

Line-output functions

Ellipse and polygon functions

Bitmap functions

Text functions

Font functions

Metafile functions

Printer-control functions

Printer-escape function

Environment functions