struct {
DWORD rdSize;
WORD rdFunction;
WORD rdParm[];
}
The CreatePatternBrush record contains a device-independent bitmap suitable for playback on all devices.
rdSize
Specifies the record size, in words.
rdFunction
Specifies the GDI function number 0x0142.
rdParm
Contains the following elements:
Element | Description |
type | Bitmap type. This element may be either of these two values: |
BS_PATTERN—Brush is defined by a device-dependent bitmap through a call to the CreatePatternBrush function. | |
BS_DIBPATTERN—Brush is defined by a device-independent bitmap through a call to the CreateDIBPatternBrush function. | |
wUsage | Color-table type. This element specifies whether the bmiColors member of the BITMAPINFO structure contains explicit RGB values or indexes to the currently realized logical palette. This element must be one of the following values: |
DIB_RGB_COLORS—The color table contains literal RGB values. | |
DIB_PAL_COLORS—The color table consists of an array of indexes to the currently realized logical palette. | |
bmi | BITMAPINFO structure (for a description of the BITMAPINFO structure, see the Microsoft Windows Programmer's Reference, Volume 3). |
bits | Actual device-independent bitmap bits. |