Packages

 

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

Class EmfPlusDrawClosedCurve

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


    public final class EmfPlusDrawClosedCurve
    extends EmfPlusDrawingRecordType

    The EmfPlusDrawClosedCurve record specifies drawing a closed cardinal spline

    • 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.
      byte getObjectId()
      Gets or sets the object identifier.
      PointF[] getPointData()
      Gets or sets the point data An array of Count points that specify the endpoints of the lines that define the spline.
      boolean getRelative()
      Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is relative.
      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 setObjectId(byte value)
      Gets or sets the object identifier.
      void setPointData(PointF[] value)
      Gets or sets the point data An array of Count points that specify the endpoints of the lines that define the spline.
      void setRelative(boolean value)
      Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is relative.
      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

      • EmfPlusDrawClosedCurve

        public EmfPlusDrawClosedCurve(EmfPlusRecord source)

        Initializes a new instance of the EmfPlusDrawClosedCurve class. RecordType - A 16-bit unsigned integer that identifies this record type as EmfPlusDrawClosedCurve from the RecordType enumeration (section 2.1.1.1). The value MUST be 0x4017.

        Parameters:
        source - The source.
    • Method Detail

      • 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 closed 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 closed curve. The value MUST be zero to 63, inclusive.

        Value: The object identifier.
      • 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.
      • getRelative

        public boolean getRelative()

        Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is relative. This bit indicates whether the PointData field specifies relative or absolute locations. If set, each element in PointData specifies a location in the coordinate space that is relative to the location specified by the previous element in the array. In the case of the first element in PointData, a previous location at coordinates (0,0) is assumed. If clear, PointData specifies absolute locations according to the C flag. Note If this flag is set, the Compressed flag (above) is undefined and MUST be ignored

        Value: true if relative; otherwise, false.
      • setRelative

        public void setRelative(boolean value)

        Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is relative. This bit indicates whether the PointData field specifies relative or absolute locations. If set, each element in PointData specifies a location in the coordinate space that is relative to the location specified by the previous element in the array. In the case of the first element in PointData, a previous location at coordinates (0,0) is assumed. If clear, PointData specifies absolute locations according to the C flag. Note If this flag is set, the Compressed flag (above) is undefined and MUST be ignored

        Value: true if relative; otherwise, false.
      • 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].

      • getPointData

        public PointF[] getPointData()

        Gets or sets the point data An array of Count points that specify the endpoints of the lines that define the spline. In a closed cardinal spline, the curve continues through the last point in the PointData array and connects with the first point in the array. The type of data in this array is specified by the Flags field, as follows: Data Type Meaning EmfPlusPointR object (section 2.2.2.37) If the P flag is set in the Flags, the points specify relative locations. EmfPlusPointF object (section 2.2.2.36) If the P and C bits are set in the Flags field, the points specify absolute locations. EmfPlusPoint object (section 2.2.2.35) If the P bit is clear and the C bit is set in the Flags field, the points specify relative locations.

      • setPointData

        public void setPointData(PointF[] value)

        Gets or sets the point data An array of Count points that specify the endpoints of the lines that define the spline. In a closed cardinal spline, the curve continues through the last point in the PointData array and connects with the first point in the array. The type of data in this array is specified by the Flags field, as follows: Data Type Meaning EmfPlusPointR object (section 2.2.2.37) If the P flag is set in the Flags, the points specify relative locations. EmfPlusPointF object (section 2.2.2.36) If the P and C bits are set in the Flags field, the points specify absolute locations. EmfPlusPoint object (section 2.2.2.35) If the P bit is clear and the C bit is set in the Flags field, the points specify relative locations.