public final class BezierShape extends PolygonShape
Represents a bezier spline.
| Constructor and Description |
|---|
BezierShape()
Initializes a new instance of the
BezierShape class. |
BezierShape(PointF[] points)
Initializes a new instance of the
BezierShape class. |
BezierShape(PointF[] points,
boolean isClosed)
Initializes a new instance of the
BezierShape class. |
| Modifier and Type | Method and Description |
|---|---|
RectangleF |
getBounds()
Gets the object's bounds.
|
RectangleF |
getBounds(Matrix matrix)
Gets the object's bounds.
|
RectangleF |
getBounds(Matrix matrix,
Pen pen)
Gets the object's bounds.
|
PointF |
getCenter()
Gets the shape's center.
|
PointF |
getEndPoint()
Gets the ending shape point.
|
ShapeSegment[] |
getSegments()
Gets the shape segments.
|
boolean |
hasSegments()
Gets a value indicating whether shape has segments.
|
getPoints, getStartPoint, isClosed, reverse, setClosed, setPoints, transformpublic BezierShape()
Initializes a new instance of the BezierShape class.
public BezierShape(PointF[] points)
Initializes a new instance of the BezierShape class.
points - The points array.public BezierShape(PointF[] points, boolean isClosed)
Initializes a new instance of the BezierShape class.
points - The points array.isClosed - If set to true the bezier spline is closed.public RectangleF getBounds()
Gets the object's bounds.
Value: The object's bounds.getBounds in class PolygonShapepublic PointF getCenter()
Gets the shape's center.
Value: The shape's center.getCenter in class PolygonShapepublic ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.getSegments in class PolygonShapepublic boolean hasSegments()
Gets a value indicating whether shape has segments.
Value:True if shape has segments; otherwise, false.hasSegments in class PolygonShapeTrue if shape has segments; otherwise, false.public PointF getEndPoint()
Gets the ending shape point.
Value: The ending shape point.getEndPoint in interface IOrderedShapegetEndPoint in class PolygonShapepublic RectangleF getBounds(Matrix matrix)
Gets the object's bounds.
getBounds in class PolygonShapematrix - The matrix to apply before bounds will be calculated.public RectangleF getBounds(Matrix matrix, Pen pen)
Gets the object's bounds.
getBounds in class PolygonShapematrix - The matrix to apply before bounds will be calculated.pen - The pen to use for object. This can influence the object's bounds size.Copyright (c) 2008-2022 Aspose Pty Ltd. All Rights Reserved.