EMRCREATEMONOBRUSH

The EMRCREATEMONOBRUSH structure contains members for the CreatePatternBrush (when passed a monochrome bitmap) or CreateDIBPatternBrush (when passed a monochrome DIB) enhanced metafile records.

typedef struct tagEMRCREATEMONOBRUSH
{
    EMR   emr; 
    DWORD ihBrush; 
    DWORD iUsage; 
    DWORD offBmi; 
    DWORD cbBmi; 
    DWORD offBits; 
    DWORD cbBits; 
} EMRCREATEMONOBRUSH, *PEMRCREATEMONOBRUSH; 
 

Members

emr
Base structure for all record types.
ihBrush
Index of brush in handle table.
iUsage
Value specifying whether the bmiColors member of the BITMAPINFO structure was provided and, if so, whether bmiColors contains explicit red, green, blue (RGB) values or indices. The iUsage member must be either the DIB_PAL_COLORS, DIB_PAL_INDICES, or DIB_RGB_COLORS value.
offBmi
Offset to BITMAPINFO structure.
cbBmi
Size of BITMAPINFO structure.
offBits
Offset to bitmap bits.
cbBits
Size of bitmap bits.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in wingdi.h.

See Also

Metafiles Overview, Enhanced Metafile Structures, BITMAPINFO, CreateDIBPatternBrush, CreatePatternBrush, RGB