Packages

 

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

Class EmfPlusDrawCurve

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


    public final class EmfPlusDrawCurve
    extends EmfPlusDrawingRecordType

    The EmfPlusDrawCurve record specifies drawing a cardinal spline NOTE: ObjectID (1 byte): The index of an EmfPlusPen object (section 2.2.1.7) in the EMF+ Object Table to draw the curve. The value MUST be zero to 63, inclusive.

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean getCompressed()
      Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is compressed.
      int getNumSegments()
      Gets or sets the segments count A 32-bit unsigned integer that specifies the number of line segments making up the spline.
      byte getObjectId()
      Gets or sets the object identifier.
      PointF[] getPointData()
      Gets or sets an array of either 32-bit signed integers or 32-bit floating-point numbers of Count length that defines coordinate values of the endpoints of the lines to be stroked.
      float getTension()
      Gets or sets the tension A 32-bit floating point number that specifies how tightly the spline bends as it passes through the points.
      void setCompressed(boolean value)
      Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is compressed.
      void setNumSegments(int value)
      Gets or sets the segments count A 32-bit unsigned integer that specifies the number of line segments making up the spline.
      void setObjectId(byte value)
      Gets or sets the object identifier.
      void setPointData(PointF[] value)
      Gets or sets an array of either 32-bit signed integers or 32-bit floating-point numbers of Count length that defines coordinate values of the endpoints of the lines to be stroked.
      void setTension(float value)
      Gets or sets the tension A 32-bit floating point number that specifies how tightly the spline bends as it passes through the points.
    • Constructor Detail

      • EmfPlusDrawCurve

        public EmfPlusDrawCurve(EmfPlusRecord source)

        Initializes a new instance of the EmfPlusDrawCurve class.

        Parameters:
        source - The source.
    • Method Detail

      • getCompressed

        public boolean getCompressed()

        Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is compressed. This bit indicates whether the PointData field specifies compressed data. If set, PointData specifies absolute locations in the coordinate space with 16-bit integer coordinates. If clear, PointData specifies absolute locations in the coordinate space with 32-bit floating-point coordinates Note If the Relative flag (below) is set, this flag is undefined and MUST be ignored

        Value: true if compressed; otherwise, false.
      • setCompressed

        public void setCompressed(boolean value)

        Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is compressed. This bit indicates whether the PointData field specifies compressed data. If set, PointData specifies absolute locations in the coordinate space with 16-bit integer coordinates. If clear, PointData specifies absolute locations in the coordinate space with 32-bit floating-point coordinates Note If the Relative flag (below) is set, this flag is undefined and MUST be ignored

        Value: true if compressed; otherwise, false.
      • getObjectId

        public byte getObjectId()

        Gets or sets the object identifier. The index of an EmfPlusPen object (section 2.2.1.7) in the EMF+ Object Table to draw the curve. 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 of an EmfPlusPen object (section 2.2.1.7) in the EMF+ Object Table to draw the curve. The value MUST be zero to 63, inclusive.

        Value: The object identifier.
      • getTension

        public float getTension()

        Gets or sets the tension A 32-bit floating point number that specifies how tightly the spline bends as it passes through the points. A value of 0 specifies that the spline is a sequence of straight lines. As the value increases, the curve becomes more rounded. For more information, see [SPLINE77] and [PETZOLD].

      • setTension

        public void setTension(float value)

        Gets or sets the tension A 32-bit floating point number that specifies how tightly the spline bends as it passes through the points. A value of 0 specifies that the spline is a sequence of straight lines. As the value increases, the curve becomes more rounded. For more information, see [SPLINE77] and [PETZOLD].

      • getNumSegments

        public int getNumSegments()

        Gets or sets the segments count A 32-bit unsigned integer that specifies the number of line segments making up the spline.

      • setNumSegments

        public void setNumSegments(int value)

        Gets or sets the segments count A 32-bit unsigned integer that specifies the number of line segments making up the spline.

      • getPointData

        public PointF[] getPointData()

        Gets or sets an array of either 32-bit signed integers or 32-bit floating-point numbers of Count length that defines coordinate values of the endpoints of the lines to be stroked.

      • setPointData

        public void setPointData(PointF[] value)

        Gets or sets an array of either 32-bit signed integers or 32-bit floating-point numbers of Count length that defines coordinate values of the endpoints of the lines to be stroked.