BezierShape
Inheritance: java.lang.Object, com.aspose.imaging.ObjectWithBounds, com.aspose.imaging.Shape, com.aspose.imaging.shapes.PolygonShape
public final class BezierShape extends PolygonShape
Represents a bezier spline.
Constructors
Constructor | 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. |
Methods
Method | Description |
---|---|
getBounds() | Gets the object’s bounds. |
getCenter() | Gets the shape’s center. |
getSegments() | Gets the shape segments. |
hasSegments() | Gets a value indicating whether shape has segments. |
getEndPoint() | Gets the ending shape point. |
getBounds(Matrix matrix) | Gets the object’s bounds. |
BezierShape()
public BezierShape()
Initializes a new instance of the BezierShape
class.
BezierShape(PointF[] points)
public BezierShape(PointF[] points)
Initializes a new instance of the BezierShape
class.
Parameters:
Parameter | Type | Description |
---|---|---|
points | PointF[] | The points array. |
BezierShape(PointF[] points, boolean isClosed)
public BezierShape(PointF[] points, boolean isClosed)
Initializes a new instance of the BezierShape
class.
Parameters:
Parameter | Type | Description |
---|---|---|
points | PointF[] | The points array. |
isClosed | boolean | If set to true the bezier spline is closed. |
getBounds()
public RectangleF getBounds()
Gets the object’s bounds.
Value: The object’s bounds.
Returns: RectangleF
getCenter()
public PointF getCenter()
Gets the shape’s center.
Value: The shape’s center.
Returns: PointF
getSegments()
public ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.
Returns: com.aspose.imaging.ShapeSegment[]
hasSegments()
public boolean hasSegments()
Gets a value indicating whether shape has segments.
Value: True
if shape has segments; otherwise, false
.
Returns: boolean
getEndPoint()
public PointF getEndPoint()
Gets the ending shape point.
Value: The ending shape point.
Returns: PointF
getBounds(Matrix matrix)
public RectangleF getBounds(Matrix matrix)
Gets the object’s bounds.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The matrix to apply before bounds will be calculated. |
Returns: RectangleF - The estimated object’s bounds.