Packages

 

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

Class EmfPlusDrawArc

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


    public final class EmfPlusDrawArc
    extends EmfPlusDrawingRecordType

    The EmfPlusDrawArc record specifies drawing the arc of an ellipse.

    • Constructor Summary

      Constructors 
      Constructor and Description
      EmfPlusDrawArc(EmfPlusRecord source)
      Initializes a new instance of the EmfPlusDrawArc class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getDataSize()
      Gets the size of the data.
      byte getObjectId()
      Gets the object identifier.
      RectangleF getRectangleData()
      Gets the rectangle data Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box of the ellipse that is collinear with the arc.
      boolean getRectFloat()
      Gets a value indicating whether the data contains EmfPlusRectF or EmfPlusRect records This bit indicates whether the data in the RectData field is compressed.
      int getSize()
      Gets the size.
      float getStartAngle()
      Gets the start angle A 32-bit non-negative floating-point value that specifies the angle between the x-axis and the starting point of the arc.
      float getSweepAngle()
      Gets the sweep angle A 32-bit floating-point value that specifies the extent of the arc to draw, as an angle in degrees measured from the starting point defined by the StartAngle value.
      void setDataSize(int value)
      Sets the size of the data.
      void setObjectId(byte value)
      Sets the object identifier.
      void setRectangleData(RectangleF value)
      Sets the rectangle data Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box of the ellipse that is collinear with the arc.
      void setRectFloat(boolean value)
      Sets a value indicating whether the data contains EmfPlusRectF or EmfPlusRect records This bit indicates whether the data in the RectData field is compressed.
      void setSize(int value)
      Sets the size.
      void setStartAngle(float value)
      Sets the start angle A 32-bit non-negative floating-point value that specifies the angle between the x-axis and the starting point of the arc.
      void setSweepAngle(float value)
      Sets the sweep angle A 32-bit floating-point value that specifies the extent of the arc to draw, as an angle in degrees measured from the starting point defined by the StartAngle value.
    • Constructor Detail

      • EmfPlusDrawArc

        public EmfPlusDrawArc(EmfPlusRecord source)

        Initializes a new instance of the EmfPlusDrawArc class.

        Parameters:
        source - The source.
    • Method Detail

      • getDataSize

        public int getDataSize()

        Gets the size of the data. A 32-bit unsigned integer that specifies the 32-bit-aligned number of bytes of record-specific data that follows. For this record type, the value MUST be one of the following: 0x00000010 If the C bit is set in the Flags field. 0x00000018 If the C bit is clear in the Flags field.

        Overrides:
        getDataSize in class EmfPlusRecord
        Returns:
        The size of the data.
        Throws:
        com.aspose.ms.System.IO.InvalidDataException - Invalid value
      • setDataSize

        public void setDataSize(int value)

        Sets the size of the data. A 32-bit unsigned integer that specifies the 32-bit-aligned number of bytes of record-specific data that follows. For this record type, the value MUST be one of the following: 0x00000010 If the C bit is set in the Flags field. 0x00000018 If the C bit is clear in the Flags field.

        Overrides:
        setDataSize in class EmfPlusRecord
        Parameters:
        value - The size of the data.
        Throws:
        com.aspose.ms.System.IO.InvalidDataException - Invalid value
      • getRectFloat

        public boolean getRectFloat()

        Gets a value indicating whether the data contains EmfPlusRectF or EmfPlusRect records This bit indicates whether the data in the RectData field is compressed. If set, RectData contains an EmfPlusRect object (section 2.2.2.38). If clear, RectData contains an EmfPlusRectF object (section 2.2.2.39).

        Returns:
        true if float; otherwise, false.
      • setRectFloat

        public void setRectFloat(boolean value)

        Sets a value indicating whether the data contains EmfPlusRectF or EmfPlusRect records This bit indicates whether the data in the RectData field is compressed. If set, RectData contains an EmfPlusRect object (section 2.2.2.38). If clear, RectData contains an EmfPlusRectF object (section 2.2.2.39).

        Parameters:
        value - true if float; otherwise, false.
      • getObjectId

        public byte getObjectId()

        Gets the object identifier. The index of an EmfPlusPen object (section 2.2.1.7) in the EMF+ Object Table to draw the arc. The value MUST be zero to 63, inclusive.

        Returns:
        The object identifier.
      • setObjectId

        public void setObjectId(byte value)

        Sets the object identifier. The index of an EmfPlusPen object (section 2.2.1.7) in the EMF+ Object Table to draw the arc. The value MUST be zero to 63, inclusive.

        Parameters:
        value - The object identifier.
      • getSize

        public int getSize()

        Gets the size. A 32-bit unsigned integer that specifies the 32-bit-aligned number of bytes in the entire record, including the 12-byte record header and record-specific data. For this record type, the value MUST be one of the following: 0x0000001C If the C bit is set in the Flags field. 0x00000024 If the C bit is clear in the Flags field

        Specified by:
        getSize in interface com.aspose.imaging_internal.fileformats.emf.IRecord
        Overrides:
        getSize in class EmfPlusRecord
        Returns:
        The size.
        Throws:
        com.aspose.ms.System.IO.InvalidDataException - Invalid value
      • setSize

        public void setSize(int value)

        Sets the size. A 32-bit unsigned integer that specifies the 32-bit-aligned number of bytes in the entire record, including the 12-byte record header and record-specific data. For this record type, the value MUST be one of the following: 0x0000001C If the C bit is set in the Flags field. 0x00000024 If the C bit is clear in the Flags field

        Specified by:
        setSize in interface com.aspose.imaging_internal.fileformats.emf.IRecord
        Overrides:
        setSize in class EmfPlusRecord
        Parameters:
        value - The size.
        Throws:
        com.aspose.ms.System.IO.InvalidDataException - Invalid value
      • getStartAngle

        public float getStartAngle()

        Gets the start angle A 32-bit non-negative floating-point value that specifies the angle between the x-axis and the starting point of the arc. Any value is acceptable, but it MUST be interpreted modulo 360, with the result that is used being in the range 0.0 inclusive to 360.0 exclusive.

      • setStartAngle

        public void setStartAngle(float value)

        Sets the start angle A 32-bit non-negative floating-point value that specifies the angle between the x-axis and the starting point of the arc. Any value is acceptable, but it MUST be interpreted modulo 360, with the result that is used being in the range 0.0 inclusive to 360.0 exclusive.

      • getSweepAngle

        public float getSweepAngle()

        Gets the sweep angle A 32-bit floating-point value that specifies the extent of the arc to draw, as an angle in degrees measured from the starting point defined by the StartAngle value. Any value is acceptable, but it MUST be clamped to -360.0 to 360.0 inclusive. A positive value indicates that the sweep is defined in a clockwise direction, and a negative value indicates that the sweep is defined in a counter-clockwise direction.

      • setSweepAngle

        public void setSweepAngle(float value)

        Sets the sweep angle A 32-bit floating-point value that specifies the extent of the arc to draw, as an angle in degrees measured from the starting point defined by the StartAngle value. Any value is acceptable, but it MUST be clamped to -360.0 to 360.0 inclusive. A positive value indicates that the sweep is defined in a clockwise direction, and a negative value indicates that the sweep is defined in a counter-clockwise direction.

      • getRectangleData

        public RectangleF getRectangleData()

        Gets the rectangle data Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box of the ellipse that is collinear with the arc. This rectangle defines the position, size, and shape of the arc. The type of object in this field is specified by the value of the Flags field.

      • setRectangleData

        public void setRectangleData(RectangleF value)

        Sets the rectangle data Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box of the ellipse that is collinear with the arc. This rectangle defines the position, size, and shape of the arc. The type of object in this field is specified by the value of the Flags field.