GDI Structures

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following table shows the GDI structures.

Programming element Description

BITMAP

This structure defines the type, width, height, color format, and bit values of a bitmap.

BITMAPCOREHEADER

This structure contains information about the dimensions and color format of a device-independent bitmap (DIB).

BITMAPCOREINFO

This structure defines the dimensions and color information for a device independent bitmap (DIB).

BITMAPFILEHEADER

This structure contains information about the type, size, and layout of a file that containing a device-independent bitmap (DIB).

BITMAPINFO

This structure defines the dimensions and color information of a Windows-based device-independent bitmap (DIB).

BITMAPINFOHEADER

This structure contains information about the dimensions and color format of a device-independent bitmap (DIB).

COLORREF

This value is a 32-bit value used to specify an RGB color.

DEVMODE

This structure contains information about a printer environment and device initialization.

DIBSECTION

This structure contains information about a device-independent bitmap (DIB).

DISPLAY_DEVICE

This structure receives information about the display device specified by the iDevNum parameter of the EnumDisplayDevices function.

OUTLINETEXTMETRICW

This structure contains metrics describing a TrueType font.

GRADIENT_RECT

This structure specifies the index of two vertices in the pVertex array in the GradientFill function.

LOGBRUSH

This structure defines the style, color, and pattern of a logical brush.

LOGPALETTE

This structure defines a logical color palette.

LOGPEN

This structure defines the style, width, and color of a pen.

PAINTSTRUCT

This structure contains information that an application uses to paint the client area of a window owned by that application.

PALETTEENTRY

This structure specifies the color and usage of a logical palette entry.

PALETTERGB

This macro accepts three values that represent the relative intensities of red, green, and blue and returns a palette-relative RGB specifier consisting of 2 in the high-order byte and an RGB value in the three low-order bytes (with a value representing the intensity of red, green, or blue in each of the bytes).

POINT

This structure defines the x- and y-coordinates of a point.

POINTS

This structure defines the coordinates of a point.

RECT

This structure defines the coordinates of the upper-left and lower-right corners of a rectangle.

RECTL

This structure defines the coordinates of the upper-left and lower-right corners of a rectangle.

RGBQUAD

This structure describes a color consisting of relative intensities of red, green, and blue.

RGBTRIPLE

This structure describes a color consisting of relative intensities of red, green, and blue.

RGNDATA

This structure contains a header and an array of rectangles that make up a region.

RGNDATAHEADER

This structure describes the data returned by the GetRegionData function.

SIZE

This structure specifies the width and height of a rectangle.

TRIVERTEX

This structure defines the screen position, color, and alpha information for a point.

VIDEOPARAMETERS

This structure contains information for a video connection.

See Also

Reference

GDI Reference