EmfColorMatchToTargetW

EmfColorMatchToTargetW class

The EMR_COLORMATCHTOTargetW record specifies whether to perform color matching with a color profile that is specified in a file with a name consisting of Unicode characters.

public sealed class EmfColorMatchToTargetW : EmfStateRecordType

Constructors

NameDescription
EmfColorMatchToTargetW(EmfRecord)Initializes a new instance of the EmfColorMatchToTargetW class.

Properties

NameDescription
CbData { get; set; }Gets or sets a 32-bit unsigned integer that specifies the size of the raw data of the target color profile, if it is contained in the Data field.
CbName { get; set; }Gets or sets a 32-bit unsigned integer that specifies the number of bytes in the Unicode UTF16-LE name of the desired color profile.
Data { get; set; }Gets or sets an array of size (cbName + cbData) in bytes, which specifies the UTF16-LE name and raw data of the desired color profile.
DwAction { get; set; }Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace enumeration (section 2.1.7).
DwFlags { get; set; }Gets or sets a 32-bit unsigned integer that specifies a value from the ColorMatchToTarget enumeration (section 2.1.6).
Name { get; }Gets the name
RawData { get; }Gets the raw data
Size { get; set; }Gets or sets the size of the record
Type { get; set; }Gets or sets the type.

Remarks

An EMR_COLORMATCHTOTargetW record can be used to control whether to apply the current color transform in the playback device context. If the dwAction value is CS_ENABLE, color mapping is enabled, and the current color transform SHOULD be applied to subsequent graphics operations. If dwAction is set to CS_DISABLE, the color transform SHOULD NOT be applied. While color mapping to the target is enabled by a dwAction value of CS_ENABLE, changes to the color space or color gamut mapping are not applied. However, those changes MUST take effect when color mapping to the target is disabled. The dwAction field SHOULD NOT be set to CS_DELETE_TRANSFORM unless color management has already been enabled with an EMR_SETICMMODE record (section 2.3.11.14).

See Also