2.3.7.1 EmfPlusBeginContainer Record

The EmfPlusBeginContainer record opens a new graphics state container and specifies a transform for it.


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

DestRect

...

...

...

SrcRect

...

...

...

StackIndex

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

Flags (2 bytes): An unsigned integer that provides information about how the operation is to be performed, and about the structure of the record.


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

PageUnit

0

0

0

0

0

0

0

0

PageUnit (1 byte): The unit of measure for page space coordinates, from the UnitType enumeration. This value SHOULD NOT be UnitTypeDisplay or UnitTypeWorld.<28>

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, the value MUST be 0x00000030.

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, the value MUST be 0x00000024.

DestRect (16 bytes): An EmfPlusRectF object that, with SrcRect, specifies a transform for the container. This transformation results in SrcRect when applied to DestRect.

SrcRect (16 bytes): An EmfPlusRectF rectangle that, with DestRect, specifies a transform for the container. This transformation results in SrcRect when applied to DestRect.

StackIndex (4 bytes): An unsigned integer that specifies an index to associate with the graphics state container. The index MUST be referenced by a subsequent EmfPlusEndContainer to close the graphics state container.

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.