2.3.8.4 EMR_RESIZEPALETTE Record

The EMR_RESIZEPALETTE record increases or decreases the size of an existing LogPalette object (section 2.2.17).


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

ihPal

NumberOfEntries

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

Size (4 bytes): An unsigned integer that specifies the size of this record in bytes.

ihPal (4 bytes): An unsigned integer that specifies the index of the palette object in the EMF object table (section 3.1.1.1).

NumberOfEntries (4 bytes): An unsigned integer that specifies the number of entries in the palette after resizing. The value MUST be <= 0x00000400 and > 0x00000000.<77>

The new size of the LogPalette object MUST be reflected in the NumberOfEntries field in that structure.

See section 2.3.8 for more object manipulation record types.

Show: