2.3.7.3 EMR_CREATECOLORSPACEW Record
The EMR_CREATECOLORSPACEW record creates a logical color space object from a color profile with a name consisting of Unicode characters.<73>
Fields not specified in this section are specified in section 2.3.7.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type |
|||||||||||||||||||||||||||||||
Size |
|||||||||||||||||||||||||||||||
ihCS |
|||||||||||||||||||||||||||||||
lcs (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
dwFlags |
|||||||||||||||||||||||||||||||
cbData |
|||||||||||||||||||||||||||||||
Data (variable, optional) |
|||||||||||||||||||||||||||||||
... |
Type (4 bytes): An unsigned integer that identifies this record type as EMR_CREATECOLORSPACEW. This value is 0x0000007A.
ihCS (4 bytes): An unsigned integer that specifies the index of the logical color space object in the EMF object table (section 3.1.1.1). This index MUST be saved so that this object can be reused or modified.
lcs (variable): A LogColorSpaceW object ([MS-WMF] section 2.2.2.12) that can specify the name of a color profile in Unicode UTF16-LE characters.
dwFlags (4 bytes): An unsigned integer that provides information about the data in this record.
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
10
C
-
C (1 bit): If set, the Data field contains color profile data.
cbData (4 bytes): An unsigned integer that specifies the size in bytes, of the Data field.
Data (variable, optional): An array of bytes that specifies color profile data. When cbData is zero, this field is optional and is ignored.
The logical color space object defined by this record can be selected into the playback device context by an EMR_SETCOLORSPACE record (section 2.3.8.7), which defines the logical color spaceto use in subsequent graphics operations.
See section 2.3.7 for more object creation record types.