Graphics Device Interface (GDI) Overview
The Graphics Device Interface (GDI) is the core Windows API for rendering 2‑D graphics, handling fonts, and managing output devices such as monitors and printers. This reference provides detailed documentation for all GDI functions, structures, constants, and messages.
BitBlt
Copies a bitmap from a source device context to a destination device context.
CreateCompatibleBitmap
Creates a bitmap compatible with the device that is associated with a given DC.
SelectObject
Selects a GDI object (pen, brush, bitmap, etc.) into a device context.
SetTextColor
Sets the text color for a device context.
DrawText
Draws formatted text in the specified rectangle.
Rectangle
Draws a rectangle using the current pen and brush.
Ellipse
Draws an ellipse that fits within the specified rectangle.
CreatePen
Creates a logical pen that has a specified style, width, and color.
CreateBrushIndirect
Creates a logical brush with the specified style, color, and pattern.
LoadBitmap
Loads a bitmap resource from executable files.