Packages

 

com.aspose.imaging.shapes

Class BezierShape

    • Constructor Detail

      • BezierShape

        public BezierShape()

        Initializes a new instance of the BezierShape class.

      • BezierShape

        public BezierShape(PointF[] points)

        Initializes a new instance of the BezierShape class.

        Parameters:
        points - The points array.
      • BezierShape

        public BezierShape(PointF[] points,
                           boolean isClosed)

        Initializes a new instance of the BezierShape class.

        Parameters:
        points - The points array.
        isClosed - If set to true the bezier spline is closed.
    • Method Detail

      • getBounds

        public RectangleF getBounds()

        Gets the object's bounds.

        Value: The object's bounds.
        Overrides:
        getBounds in class PolygonShape
        Returns:
        The object's bounds.
      • getCenter

        public PointF getCenter()

        Gets the shape's center.

        Value: The shape's center.
        Overrides:
        getCenter in class PolygonShape
        Returns:
        The shape's center.
      • getSegments

        public ShapeSegment[] getSegments()

        Gets the shape segments.

        Value: The shape segments.
        Overrides:
        getSegments in class PolygonShape
        Returns:
        The shape segments.
      • hasSegments

        public boolean hasSegments()

        Gets a value indicating whether shape has segments.

        Value: True if shape has segments; otherwise, false.
        Overrides:
        hasSegments in class PolygonShape
        Returns:
        True if shape has segments; otherwise, false.
      • getBounds

        public RectangleF getBounds(Matrix matrix)

        Gets the object's bounds.

        Overrides:
        getBounds in class PolygonShape
        Parameters:
        matrix - The matrix to apply before bounds will be calculated.
        Returns:
        The estimated object's bounds.
      • getBounds

        public RectangleF getBounds(Matrix matrix,
                                    Pen pen)

        Gets the object's bounds.

        Overrides:
        getBounds in class PolygonShape
        Parameters:
        matrix - The matrix to apply before bounds will be calculated.
        pen - The pen to use for object. This can influence the object's bounds size.
        Returns:
        The estimated object's bounds.