EMRCOLORMATCHTOTARGET
The EMRCOLORMATCHTOTARGET structure contains members for the ColorMatchToTarget enhanced metafile record.
typedef struct tagCOLORMATCHTOTARGET {
EMR emr;
DWORD dwAction;
DWORD dwFlags;
DWORD cbName;
DWORD cbData;
BYTE Data[1];
} EMRCOLORMATCHTOTARGET, *PEMRCOLORMATCHTOTARGET;
Members
- emr
- Base structure for all record types.
- dwAction
- Action to be taken. This member can be one of the following values.
Action |
Meaning |
CS_ENABLE |
Maps colors to the target device's color gamut. This enables color proofing. All subsequent draw commands to the DC will render colors as they would appear on the target device. |
CS_DISABLE |
Disables color proofing. |
CS_DELETE_TRANSFORM |
If color management is enabled for the target profile, disables it and deletes the concatenated transform. |
- dwFlags
- This parameter can be the following value.
Flag |
Meaning |
COLORMATCHTOTARGET_EMBEDED |
Indicates that a color profile has been embedded in the metafile. |
- cbName
- Size of the desired target profile name, in bytes.
- cbData
- Size of the raw target profile data in bytes, if it is attached.
- Data
- An array containing the target profile name and the raw target profile data. The size of the array is cbName + cbData. If cbData is nonzero the raw target profile data is attached and follows the target profile name at location Data[cbName].
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Wingdi.h; include Windows.h.
See Also
Metafiles Overview, Metafile Structures, ColorMatchToTarget