Class EmfColorMatchToTargetW
Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Records
Assembly: Aspose.Imaging.dll (25.7.0)
The EMR_COLORMATCHTOTargetW record specifies whether to perform color matching with a colorprofile that is specified in a file with a name consisting of Unicode characters.
public sealed class EmfColorMatchToTargetW : EmfStateRecordType
{
public short Red;
public short Green;
public short Blue;
}
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 currentcolor transform in the playback device context. If the dwAction value is CS_ENABLE, colormapping is enabled, and the current color transform SHOULD be applied to subsequent graphicsoperations. If dwAction is set to CS_DISABLE, the color transform SHOULD NOT beapplied.While color mapping to the target is enabled by a dwAction value of CS_ENABLE, changes to thecolor space or color gamut mapping are not applied. However, those changes MUST take effectwhen color mapping to the target is disabled.The dwAction field SHOULD NOT be set to CS_DELETE_TRANSFORM unless color managementhas 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 targetcolor 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 UnicodeUTF16-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-LEname 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 ColorSpaceenumeration (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 theColorMatchToTarget enumeration (section 2.1.6).
public EmfColor MatchToTargetDwFlags
{
get { return this.DwFlags; }
set { this.DwFlags = value; }
}
Property Value
Name
Gets the name
public string Name
{
get;
}
Property Value
RawData
Gets the raw data
public byte[] RawData
{
get;
}
Property Value
byte []