Class EmfSetRop2
Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Records
Assembly: Aspose.Imaging.dll (25.7.0)
The EMR_SETROP2 record defines a binary raster operation mode.
public sealed class EmfSetRop2 : EmfStateRecordType
{
private const int tag = 0x015b;
private short operationCode;
public EmfSetRop2(short operationCode)
{
this.operationCode = operationCode;
}
public override void Encode(EmfRecorder recoder)
{
base.EncodeHeader(recoder, tag);
recoder.WriteShort(operationCode);
}
protected override void DecodeFields(EmfReader reader)
{
operationCode = reader.ReadShort();
}
}
Inheritance
object ← MetaObject ← EmfRecord ← EmfStateRecordType ← EmfSetRop2
Inherited Members
EmfRecord.Type , EmfRecord.Size , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Binary raster operation mix modes define how to combine source and destination colors whendrawing with the current pen. The mix modes are binary raster operation codes, representing allpossible Boolean functions of two variables, using the binary operations AND, OR, and XOR(exclusive OR), and the unary operation NOT. The mix mode is for raster devices only; it is notavailable for vector devices.
Constructors
EmfSetRop2(EmfRecord)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.Emf.Records.EmfSetRop2 class.
public EmfSetRop2(EmfRecord source)
{
}
Parameters
source
EmfRecord
The source.
EmfSetRop2()
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.Emf.Records.EmfSetRop2 class.
public EmfSetRop2()
{
}
Properties
Rop2Mode
Gets or sets a 32-bit unsigned integer that specifies the raster operation mode andMUST be in the WMF Binary Raster Op enumeration ([MS-WMF] section 2.1.1.2).
public WmfBinaryRasterOperation Rop2Mode
{
get;
set;
}