Class EmfPlusSetClipRegion
Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.7.0)
The EmfPlusSetClipRegion record combines the current clipping region with another graphics region.The new current clipping region is set to the result of performing the CombineMode operation onthe previous current clipping region and the specified EmfPlusRegion object.
public sealed class EmfPlusSetClipRegion : EmfPlusClippingRecordType
{
private uint m_iObject;
private EmfPlusRecord m_arRegion;
public EmfPlusSetClipRegion(uint iObject, EmfPlusRecord arRegion)
{
this.m_iObject = iObject;
this.m_arRegion = arRegion;
}
public override uint Size
{
get
{
return (uint)(Unsafe.SizeOf<EmfPlusSetClipRegion>() + m_arRegion.Size);
}
}
protected override void Serialize(Stream stream)
{
base.Serialize(stream);
this.m_iObject.Serialize(stream);
this.m_arRegion.Serialize(stream);
}
}
Inheritance
object ← MetaObject ← EmfPlusRecord ← EmfPlusClippingRecordType ← EmfPlusSetClipRegion
Inherited Members
EmfPlusRecord.Type , EmfPlusRecord.Flags , EmfPlusRecord.Size , EmfPlusRecord.DataSize , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
EmfPlusSetClipRegion(EmfPlusRecord)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusSetClipRegion class.
public void EmfPlusSetClipRegion(EmfPlusRecord source)
{
}
Parameters
source
EmfPlusRecord
The source.
Properties
Cm
Gets or sets the CM (4 bits): Specifies the logical operation for combining two regions. See theCombineMode enumeration (section 2.1.1.4) for the meanings of the values.
public EmfPlusCombineMode cm; // Property renamed to lowerCamelCase for readability
{
get
{
return this.cm;
}
set
{
this.cm = value;
}
}
Property Value
ObjectId
Gets or sets the index of an EmfPlusRegion object (section 2.2.1.8) in the EMF+Object Table.The value MUST be zero to 63, inclusive.
public byte ObjectId
{
get;
set;
}