Packages

 

com.aspose.imaging.fileformats.emf.emfplus.records

Class EmfPlusObject

  • All Implemented Interfaces:
    com.aspose.imaging_internal.fileformats.emf.IRecord, Cloneable


    public final class EmfPlusObject
    extends EmfPlusObjectRecordType

    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.

    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).

    • Constructor Detail

      • EmfPlusObject

        public EmfPlusObject(EmfPlusRecord source)

        Initializes a new instance of the EmfPlusObject class.

        Parameters:
        source - The source.
    • Method Detail

      • isContinuable

        public boolean 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.

        Value: true if this instance is compressed; otherwise, false.
      • setContinuable

        public void setContinuable(boolean value)

        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.

        Value: true if this instance is compressed; otherwise, false.
      • getObjectType

        public byte getObjectType()

        Gets or sets the type of the object.

        Value: The type of the object.
      • setObjectType

        public void setObjectType(byte value)

        Gets or sets the type of the object.

        Value: The type of the object.
      • getObjectId

        public byte getObjectId()

        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.

        Value: The object identifier.
      • setObjectId

        public void setObjectId(byte value)

        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.

        Value: The object identifier.
      • getTotalObjectSize

        public int getTotalObjectSize()

        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.

        Value: The total size of the object.
      • setTotalObjectSize

        public void setTotalObjectSize(int value)

        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.

        Value: The total size of the object.
      • getObjectData

        public EmfPlusGraphicsObjectType getObjectData()

        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.

        Value: The object data.
      • setObjectData

        public void setObjectData(EmfPlusGraphicsObjectType value)

        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.

        Value: The object data.