This class is a metafile header record.
class MetaHeader { public: unsigned Type; unsigned Size; Rectangle Bounds; Rectangle Frame; unsigned Signature; unsigned Version; unsigned unsigned chars; unsigned Records; Part Handles; Part Reserved; unsigned Description; unsigned DescriptionOffset; unsigned PaletteEntries; Dimensions Device; Dimensions Millimeters; unsigned PixelFormatSize; unsigned PixelFormatOffset; bool OpenGraphicsLanguage; };
Type | The record type. This member contains the constant MetaType::Header. |
Size | The size (in bytes) of this structure - that is, sizeof(MetaHeader). |
Bounds | The dimensions (in device units) of the smallest bounding rectangle of the picture stored in the metafile. The dimensions include the right and bottom edges. |
Frame | The dimensions (in units of .01 millimeter) of a rectangle that contains the picture stored in the metafile. This rectangle is supplied by the application when creating the metafile. The dimensions include the right and bottom edges. |
Signature | The signature. This member contains the constant value MetafileSignature::EnhancedMetafile. |
Version | The version of the metafile version. The current version value is 0x10000. |
unsigned chars | The size (in bytes) of the enhanced metafile. |
Records | The number of records in the enhanced metafile. |
Handles | The number of objects in the handle table of the enhanced metafile. |
Reserved | Reserved - must be zero. |
Description | The number of characters in the array that contains the description of the enhanced metafile. When the enhanced metafile does not contain a description string this member is zero. |
DescriptionOffset | The offset from the beginning of the structure to the array that contains the description. When the enhanced metafile does not contain a description string this member is zero. |
PaletteEntries | The number of entries in the palette of the metafile. |
Device | The dimensions (in pixels) of the reference device. |
Millimeters | The dimensions (in millimeters) of the reference device. |
PixelFormatSize | The size of the last recorded pixel format in a metafile. If a pixel format is set in a reference device context at the commencement of recording, this member is set to sizeof(PixelFormatDescriptor). When no pixel format is given whilst recording the metafile, this member is set to zero. If more than one pixel format is given, the header points to the last pixel format. |
PixelFormatOffset | The offset of pixel format used when recording the metafile. If a pixel format is set in the reference device context during or at the commencement of recording, this member is set to the offset of the record PixelFormatDescriptor. When no pixel format is given whilst recording the metafile, this member is set to zero. If more than one pixel format is given, the header points to the last pixel format. |
OpenGraphicsLanguage | When true, OpenGL records are present in a metafile; otherwise they are not. |