Packages

 

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

Class EmfPlusFillClosedCurve

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


    public final class EmfPlusFillClosedCurve
    extends EmfPlusDrawingRecordType

    The EmfPlusFillClosedCurve record specifies filling the interior of a closed cardinal spline

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getBrushId()
      Gets or sets the brush identifier A 32-bit unsigned integer that specifies the EmfPlusBrush, the content of which is determined by the S bit in the Flags field.
      boolean getCompressed()
      Gets or sets a value indicating whether this EmfPlusFillClosedCurve is compressed.
      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 EmfPlusFillClosedCurve is relative.
      float getTension()
      Gets or sets the tension A 32-bit floating point value that specifies how tightly the spline bends as it passes through the points.
      boolean getWinding()
      Gets or sets a value indicating whether this EmfPlusFillClosedCurve is winding.
      boolean isColor()
      Gets or sets a value indicating whether this instance is color.
      void setBrushId(int value)
      Gets or sets the brush identifier A 32-bit unsigned integer that specifies the EmfPlusBrush, the content of which is determined by the S bit in the Flags field.
      void setColor(boolean value)
      Gets or sets a value indicating whether this instance is color.
      void setCompressed(boolean value)
      Gets or sets a value indicating whether this EmfPlusFillClosedCurve is compressed.
      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 EmfPlusFillClosedCurve is relative.
      void setTension(float value)
      Gets or sets the tension A 32-bit floating point value that specifies how tightly the spline bends as it passes through the points.
      void setWinding(boolean value)
      Gets or sets a value indicating whether this EmfPlusFillClosedCurve is winding.
    • Constructor Detail

      • EmfPlusFillClosedCurve

        public EmfPlusFillClosedCurve(EmfPlusRecord source)

        Initializes a new instance of the EmfPlusFillClosedCurve class.

        Parameters:
        source - The source.
    • Method Detail

      • isColor

        public boolean isColor()

        Gets or sets a value indicating whether this instance is color. If set, BrushId specifies a color as an EmfPlusARGB object (section 2.2.2.1). If clear, BrushId contains the index of an EmfPlusBrush object (section 2.2.1.1) in the EMF+ Object Table.

        Value: true if this instance is color; otherwise, false.
      • setColor

        public void setColor(boolean value)

        Gets or sets a value indicating whether this instance is color. If set, BrushId specifies a color as an EmfPlusARGB object (section 2.2.2.1). If clear, BrushId contains the index of an EmfPlusBrush object (section 2.2.1.1) in the EMF+ Object Table.

        Value: true if this instance is color; otherwise, false.
      • getCompressed

        public boolean getCompressed()

        Gets or sets a value indicating whether this EmfPlusFillClosedCurve 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. ---------------------- A "winding" fill operation fills areas according to the "even-odd parity" rule. According to this rule, a test point can be determined to be inside or outside a closed curve as follows: Draw a line from the test point to a point that is distant from the curve. If that line crosses the curve an odd number of times, the test point is inside the curve; otherwise, the test point is outside the curve. --------------------- An "alternate" fill operation fills areas according to the "non-zero" rule. According to this rule, a test point can be determined to be inside or outside a closed curve as follows: Draw a line from a test point to a point that is distant from the curve. Count the number of times the curve crosses the test line from left to right, and count the number of times the curve crosses the test line from right to left. If those two numbers are the same, the test point is outside the curve; otherwise, the test point is inside the curve.

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

        public void setCompressed(boolean value)

        Gets or sets a value indicating whether this EmfPlusFillClosedCurve 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. ---------------------- A "winding" fill operation fills areas according to the "even-odd parity" rule. According to this rule, a test point can be determined to be inside or outside a closed curve as follows: Draw a line from the test point to a point that is distant from the curve. If that line crosses the curve an odd number of times, the test point is inside the curve; otherwise, the test point is outside the curve. --------------------- An "alternate" fill operation fills areas according to the "non-zero" rule. According to this rule, a test point can be determined to be inside or outside a closed curve as follows: Draw a line from a test point to a point that is distant from the curve. Count the number of times the curve crosses the test line from left to right, and count the number of times the curve crosses the test line from right to left. If those two numbers are the same, the test point is outside the curve; otherwise, the test point is inside the curve.

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

        public boolean getWinding()

        Gets or sets a value indicating whether this EmfPlusFillClosedCurve is winding. This bit indicates how to perform the fill operation. If set, the fill is a "winding" fill. If clear, the fill is an "alternate" fill.

        Value: true if winding; otherwise, false.
      • setWinding

        public void setWinding(boolean value)

        Gets or sets a value indicating whether this EmfPlusFillClosedCurve is winding. This bit indicates how to perform the fill operation. If set, the fill is a "winding" fill. If clear, the fill is an "alternate" fill.

        Value: true if winding; otherwise, false.
      • getRelative

        public boolean getRelative()

        Gets or sets a value indicating whether this EmfPlusFillClosedCurve 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 C 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 EmfPlusFillClosedCurve 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 C flag (above) is undefined and MUST be ignored.

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

        public int getBrushId()

        Gets or sets the brush identifier A 32-bit unsigned integer that specifies the EmfPlusBrush, the content of which is determined by the S bit in the Flags field. This brush is used to fill the interior of the closed cardinal spline.

      • setBrushId

        public void setBrushId(int value)

        Gets or sets the brush identifier A 32-bit unsigned integer that specifies the EmfPlusBrush, the content of which is determined by the S bit in the Flags field. This brush is used to fill the interior of the closed cardinal spline.

      • getTension

        public float getTension()

        Gets or sets the tension A 32-bit floating point value that specifies how tightly the spline bends as it passes through the points. A value of 0.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 value that specifies how tightly the spline bends as it passes through the points. A value of 0.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

      • 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