2.3.8.8 EMR_SETPALETTEENTRIES Record

The EMR_SETPALETTEENTRIES record defines RGB color values in a range of entries for an existing logical palette.


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

Start

NumberofEntries

aPalEntries (variable)

...

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

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

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

Start (4 bytes): An unsigned integer that specifies the index in the palette of the first entry to set.

NumberofEntries (4 bytes): An unsigned integer that specifies the number of entries in the aPalEntries array.

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

See section 2.3.8 for more object manipulation record types.