CreateDIBPatternBrushPt function (wingdi.h)
The CreateDIBPatternBrushPt function creates a logical brush that has the pattern specified by the device-independent bitmap (DIB).
Syntax
HBRUSH CreateDIBPatternBrushPt(
[in] const VOID *lpPackedDIB,
[in] UINT iUsage
);
Parameters
[in] lpPackedDIB
A pointer to a packed DIB consisting of a BITMAPINFO structure immediately followed by an array of bytes defining the pixels of the bitmap.
[in] iUsage
Specifies whether the bmiColors member of the BITMAPINFO structure contains a valid color table and, if so, whether the entries in this color table contain explicit red, green, blue (RGB) values or palette indexes. The iUsage parameter must be one of the following values.
Return value
If the function succeeds, the return value identifies a logical brush.
If the function fails, the return value is NULL.
Remarks
A brush is a bitmap that the system uses to paint the interiors of filled shapes.
After an application creates a brush by calling CreateDIBPatternBrushPt, it can select that brush into any device context by calling the SelectObject function.
When you no longer need the brush, call the DeleteObject function to delete it.
ICM: No color is done at brush creation. However, color management is performed when the brush is selected into an ICM-enabled device context.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |