Microsoft Docs

Graphics Device Interface (GDI)

Overview

The Graphics Device Interface (GDI) is a core component of the Windows operating system that provides functions for representing graphical objects and transmitting them to output devices such as monitors and printers. It enables applications to draw lines, curves, fonts, and images directly to the screen or to an off‑screen bitmap.

Below you will find a curated list of the most frequently used GDI functions, structures, and constants, along with quick‑search capabilities.

Quick Search

NameCategoryDescription
CreateCompatibleDCFunctionCreates a memory device context compatible with the specified device.
DeleteObjectFunctionDeletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object.
SelectObjectFunctionSelects an object into the specified device context.
BitBltFunctionCopies a bitmap from a source device context into a destination device context.
RECTStructureDefines a rectangle by the coordinates of its upper-left and lower-right corners.
POINTStructureDefines the x- and y-coordinates of a point.
HFONTConstantHandle to a font object.
HBRUSHConstantHandle to a brush object.
GetDeviceCapsFunctionRetrieves device-specific information for the specified device.
SetPixelFunctionSets the pixel at the specified coordinates to a specified color.