GDI32 Functions

This section lists the functions available in the GDI32.dll library, which provides the core Windows graphics device interface (GDI) functionality. GDI is used for drawing text, shapes, and bitmaps on the screen and in printer device contexts.

Core Drawing Functions

Arc()

Draws a circular or elliptical arc.

Details »

CreatePen()

Creates a logical pen.

Details »

LineTo()

Draws a line from the current position to a specified point.

Details »

Rectangle()

Draws a rectangle.

Details »

RoundRect()

Draws a rectangle with rounded corners.

Details »

Ellipse()

Draws an ellipse.

Details »

Polygon()

Draws a polygon.

Details »

Polyline()

Draws a series of connected lines.

Details »

Text and Font Functions

TextOut()

Writes a string of text at the specified coordinates.

Details »

CreateFont()

Creates a logical font.

Details »

SetTextAlign()

Sets the text alignment for a device context.

Details »

GetTextExtentPoint32()

Calculates the dimensions of a string of text.

Details »

Color and Brush Functions

SetPixel()

Sets the pixel at the specified coordinates to the specified color.

Details »

CreateSolidBrush()

Creates a solid brush.

Details »

SetBkColor()

Sets the current background color.

Details »

SetTextColor()

Sets the current text color.

Details »

Device Context Management

GetDC()

Retrieves a handle to a device context (DC) for a client area of a window.

Details »

ReleaseDC()

Releases a device context.

Details »

CreateCompatibleDC()

Creates a memory device context that is compatible with the specified device.

Details »

SelectObject()

Selects an object into a specified device context.

Details »

This is a partial list of GDI32 functions. Refer to the detailed documentation for each function for specific usage, parameters, and return values.