Class EmfCreateColorSpaceW
Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Records
Assembly: Aspose.Imaging.dll (25.7.0)
The EMR_CREATECOLORSPACEW record creates a logical color space object from a color profile witha name consisting of Unicode characters.
public sealed class EmfCreateColorSpaceW : EmfObjectCreationRecordType
{
public const int tag = 0x45;
public EmfCreateColorSpaceW()
: base(tag)
{
}
public int index { get; set; }
public short nRedComponents { get; set; }
public short nGreenComponents { get; set; }
public short nBlueComponents { get; set; }
public short nAlphaComponents { get; set; }
public short intent { get; set; }
}
Inheritance
object ← MetaObject ← EmfRecord ← EmfObjectCreationRecordType ← EmfCreateColorSpaceW
Inherited Members
EmfRecord.Type , EmfRecord.Size , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
The logical color space object defined by this record can be selected into the playback device contextby an EMR_SETCOLORSPACE record (section 2.3.8.7), which defines the logical color space to use insubsequent graphics operations.
Constructors
EmfCreateColorSpaceW(EmfRecord)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.Emf.Records.EmfCreateColorSpaceW class.
public EmfCreateColorSpaceW(EmfRecord source)
{
this.Id = (short)source.GetUShort();
this.Type = (EmfValueType)source.GetUShort();
this._reserved = source.GetBytes(4);
this._redPrimaryM1 = source.GetFloat();
this._greenPrimaryM1 = source.GetFloat();
this._bluePrimaryM1 = source.GetFloat();
this._redPrimaryM2 = source.GetFloat();
this._greenPrimaryM2 = source.GetFloat();
this._bluePrimaryM2 = source.GetFloat();
this._hueAngle = source.GetFloat();
this._saturation = source.GetUShort();
this._intensity = source.GetUShort();
}
Parameters
source
EmfRecord
The source.
Properties
CbData
Gets or sets a 32-bit unsigned integer that specifies the size, in bytes, of the Data field.
public int CbData
{
get;
set;
}
Property Value
Data
Gets or sets an optional array of bytes that specifies color profile data.
public byte[] Data
{
get;
set;
}
Property Value
byte []
DwFlags
Gets or sets a 32-bit unsigned integer that provides information about the data in this record.
public int DwFlags
{
get;
set;
}
Property Value
IhCS
Gets or sets a 32-bit unsigned integer that specifies the index of the logical color spaceobject in the EMF object table (section 3.1.1.1). This index MUST be saved so that this objectcan be reused or modified.
public int IhCS
{
get;
set;
}
Property Value
Lcs
Gets or sets a WMF LogColorSpaceW object ([MS-WMF] section 2.2.2.12) that can specifythe name of a color profile in Unicode UTF16-LE characters
public WmfLogColorSpaceW Lcs
{
get;
set;
}