libUEMF
A portable library for reading and writing WMF, EMF and EMF+ files
|
#include <uemf.h>
Data Fields | |
U_EMR | emr |
U_EMR. | |
U_CBPLENTRIES | cbPalEntries |
Number of palette entries. | |
U_OFFPLENTRIES | offPalEntries |
Offset in bytes to array of palette entries. | |
EMF manual 3.2.4.1
This is a very odd structure because the nSizeLast follows an optional variable size field. Consequently even though nSizeLast has a name it cannot actually be accessed by it! Following the core structure appear these fields:
U_LOGPLTNTRY PalEntries[1]; Record may include optional array of PalEntries
uint32_t nSizeLast; Mandatory, but position isn't fixed. Must have same value as emr.nSize in header record