Class EmfPlusObject
Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.2.0)
The EmfPlusObject record specifies an object for use in graphics operations. The object definition can span multiple records, which is indicated by the value of the Flags field.
public sealed class EmfPlusObject : EmfPlusObjectRecordType
Inheritance
object ← MetaObject ← EmfPlusRecord ← EmfPlusObjectRecordType ← EmfPlusObject
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()
Remarks
The EmfPlusObject record is generic; it is used for all types of objects. Values that are specific to particular object types are contained in the ObjectData field. A conceptual model for managing graphics objects is described in Managing Graphics Objects (section 3.1.2).
Constructors
EmfPlusObject(EmfPlusRecord)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusObject class.
public EmfPlusObject(EmfPlusRecord source)
Parameters
source
EmfPlusRecord
The source.
Properties
IsContinuable
Gets or sets a value indicating whether this instance is continuable. Indicates that the object definition continues on in the next EmfPlusObject record. This flag is never set in the final record that defines the object.
public bool IsContinuable { get; set; }
Property Value
ObjectData
Gets or sets an array of bytes that contains data for the type of object specified in the Flags field. The content and format of the data can be different for each object type. See the individual object definitions in section 2.2.1 for additional information.
public EmfPlusGraphicsObjectType ObjectData { get; set; }
Property Value
ObjectId
Gets or sets the object identifier. The index in the EMF+ Object Table to associate with the object created by this record. The value MUST be zero to 63, inclusive.
public byte ObjectId { get; set; }
Property Value
ObjectType
Gets or sets the type of the object.
public EmfPlusObjectType ObjectType { get; set; }
Property Value
TotalObjectSize
Gets or sets the total size of the object. If the record is continuable, when the continue bit is set, this field will be present. Continuing objects have multiple EMF+ records starting with EmfPlusContineudObjectRecord. Each EmfPlusContinuedObjectRecord will contain a TotalObjectSize. Once TotalObjectSize number of bytes has been read, the next EMF+ record will not be treated as part of the continuing object.
public int TotalObjectSize { get; set; }