2.3.8.7 EMR_SETCOLORSPACE Record

The EMR_SETCOLORSPACE record selects a logical color space into the playback device context.<79>


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

ihCS

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

Size (4 bytes): An unsigned integer that specifies the size of this record in bytes. This value is 0x0000000C.

ihCS (4 bytes): An unsigned integer that specifies the index of a logical color space object in the EMF object table (section 3.1.1.1).

This object is either a LogColorSpace or LogColorSpaceW object ([MS-WMF] sections 2.2.2.11 and 2.2.2.12, respectively).

The color space specified by this record MUST be used in subsequent EMF drawing operations, until another EMR_SETCOLORSPACE record changes the object or the object is deleted.

See section 2.3.8 for more object manipulation record types.