Class EmfColorMatchToTargetW
Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Records
Assembly: Aspose.Imaging.dll (25.2.0)
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
Inheritance
object ← MetaObject ← EmfRecord ← EmfStateRecordType ← EmfColorMatchToTargetW
Inherited Members
EmfRecord.Type, EmfRecord.Size, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
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).
Constructors
EmfColorMatchToTargetW(EmfRecord)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.Emf.Records.EmfColorMatchToTargetW class.
public EmfColorMatchToTargetW(EmfRecord source)
Parameters
source
EmfRecord
The source.
Properties
CbData
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.
public int CbData { get; set; }
Property Value
CbName
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.
public int CbName { get; set; }
Property Value
Data
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.
public byte[] Data { get; set; }
Property Value
byte[]
DwAction
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace enumeration (section 2.1.7).
public EmfColorSpace DwAction { get; set; }
Property Value
DwFlags
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorMatchToTarget enumeration (section 2.1.6).
public EmfColorMatchToTarget DwFlags { get; set; }
Property Value
Name
Gets the name
public string Name { get; }
Property Value
RawData
Gets the raw data
public byte[] RawData { get; }
Property Value
byte[]