libUEMF
A portable library for reading and writing WMF, EMF and EMF+ files
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
U_BRUSH Struct Reference

#include <uwmf.h>

Data Fields

uint16_t Style
 BrushStyle Enumeration.
 
U_COLORREF Color
 Brush Color value, 32 bit value is not aligned.
 
uint8_t Data [1]
 Brush pattern information, variable size and format.
 

Detailed Description

Brush Object WMF manual 2.2.1.1

Documentation is muddy, bColor and bHatch fields have different meanings depending on the value of bStyle. Unclear if bHatch bytes are present in some cases from the documentation.

  style                Color                Data
  U_BS_SOLID           ColorRef Object      Not used (bytes present???)
  U_BS_NULL            ignored              ignored  (bytes present???).
  U_BS_PATTERN         ignored              Bitmap16 object holding patern
  U_BS_DIBPATTERNPT    ColorUsage Enum      DIB object
  U_BS_HATCHED         ColorRef Object      HatchStyle Enumeration

The documentation for this struct was generated from the following file: