2.3.7.3 EmfPlusEndContainer Record

The EmfPlusEndContainer record closes a graphics state container that was previously opened by a begin container operation.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Type

Flags

Size

DataSize

StackIndex

Type (2 bytes): An unsigned integer that identifies this record type as EmfPlusEndContainer from the RecordType enumeration. The value MUST be 0x4029.

Flags (2 bytes): An unsigned integer that is not used. This field SHOULD be set to zero and MUST be ignored upon receipt.

Size (4 bytes): An unsigned integer that specifies the 32-bit-aligned number of bytes in the entire record, including the 12-byte record header and record-specific data. For this record type, this value is 0x00000010.

DataSize (4 bytes): An unsigned integer that specifies the 32-bit-aligned number of bytes of record-specific data that follows. For this record type, this value is 0x00000004.

StackIndex (4 bytes): An unsigned integer that specifies the index of a graphics state container. The index MUST match the value associated with a graphics state container opened by a previous EmfPlusBeginContainer or EmfPlusBeginContainerNoParams record.

Each graphics state container MUST be added to an array of saved graphics containers. The graphics state container is not written to the EMF+ metafile, so its format can be determined by the implementation.

See section 2.3.7 for the specification of additional state record types.