Class EmfPlusObject

Class EmfPlusObject

Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.7.0)

The EmfPlusObject record specifies an object for use in graphics operations. The object definitioncan span multiple records, which is indicated by the value of the Flags field.

public sealed class EmfPlusObject : EmfPlusObjectRecordType
    {
        private int _type;
        private EmfPlusPropertyCollection _properties;
        private EmfPlusElementCollection<EmfPlusGraphicsState> _graphicsStates;
    }

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 toparticular object types are contained in the ObjectData field. A conceptual model for managinggraphics 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 EmfPlusObjectrecord. This flag is never set in the final record that defines the object.

public bool isContinuable { get; set; }

Property Value

bool

ObjectData

Gets or sets an array of bytes that contains data for the type of object specified inthe Flags field. The content and format of the data can be different for each object type. Seethe individual object definitions in section 2.2.1 for additional information.

public EmfPlusGraphicsObjectType ObjectData
    {
        get;
        set;
    }

Property Value

EmfPlusGraphicsObjectType

ObjectId

Gets or sets the object identifier.The index in the EMF+ Object Table to associate with the objectcreated by this record. The value MUST be zero to 63, inclusive.

public byte ObjectId
    {
        get;
        set;
    }

Property Value

byte

ObjectType

Gets or sets the type of the object.

public EmfPlusObjectType ObjectType
    {
        get;
        set;
    }

Property Value

EmfPlusObjectType

TotalObjectSize

Gets or sets the total size of the object.If the record is continuable, when the continue bit is set, this fieldwill be present. Continuing objects have multiple EMF+ records starting withEmfPlusContineudObjectRecord. Each EmfPlusContinuedObjectRecord will contain aTotalObjectSize. 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;
   }

Property Value

int

 English