2.3.4.1 EMR_EOF Record

The EMR_EOF record indicates the end of the metafile and specifies a palette.

Fields not specified in this section are specified in section 2.3.4.


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

Size

nPalEntries

offPalEntries

PaletteBuffer (variable, optional)

...

SizeLast

Type (4 bytes): An unsigned integer that identifies this record type as EMR_EOF. This value is 0x0000000E.

nPalEntries (4 bytes): An unsigned integer that specifies the number of palette entries.

offPalEntries (4 bytes): An unsigned integer that specifies the offset to the palette entries from the start of this record.

PaletteBuffer (variable, optional): An array of bytes that contains palette data, which is not required to be contiguous with the fixed-length portion of the EMR_EOF record. Thus, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.


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

UndefinedSpace1 (variable, optional)

...

PaletteEntries (variable)

...

UndefinedSpace2 (variable, optional)

...

PaletteEntries (variable): An array of LogPaletteEntry objects (section 2.2.18) that specifies the palette data.

SizeLast (4 bytes): An unsigned integer that MUST be the same as Size and MUST be the last field of the record and hence the metafile. LogPaletteEntry objects, if they exist, MUST precede this field.

See section 2.3.4 for more control record types.

Show: