3.2.44 EMR_SELECTPALETTE Example 2

This section provides an example of the EMR_SELECTPALETTE record.

 000006D0: 30 00 00 00 0C 00 00 00 0F 00 00 80


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 (0x00000030)

Size (0x0000000C)

ihPal (0x8000000F)

Type (4 bytes): 0x00000030 identifies this EMF record type as EMR_SELECTPALETTE.

Size (4 bytes): 0x0000000C specifies the size of this record in bytes.

ihPal (4 bytes): 0x8000000F specifies the palette index. The palette can be selected in background mode only.