BezierShape

Inheritance: java.lang.Object, com.aspose.imaging.ObjectWithBounds, com.aspose.imaging.Shape, com.aspose.imaging.shapes.PolygonShape

public final class BezierShape extends PolygonShape

表示贝塞尔样条。

构造函数

构造函数描述
BezierShape()初始化 BezierShape 类的新实例。
BezierShape(PointF[] points)初始化 BezierShape 类的新实例。
BezierShape(PointF[] points, boolean isClosed)初始化 BezierShape 类的新实例。

方法

方法描述
getBounds()获取对象的边界。
getCenter()获取形状的中心。
getSegments()获取形状的段。
hasSegments()获取指示形状是否具有段的值。
getEndPoint()获取结束形状点。
getBounds(Matrix matrix)获取对象的边界。

BezierShape()

public BezierShape()

初始化 BezierShape 类的新实例。

BezierShape(PointF[] points)

public BezierShape(PointF[] points)

初始化 BezierShape 类的新实例。

Parameters:

参数类型描述
pointsPointF[]点数组。

BezierShape(PointF[] points, boolean isClosed)

public BezierShape(PointF[] points, boolean isClosed)

初始化 BezierShape 类的新实例。

Parameters:

参数类型描述
pointsPointF[]点数组。
isClosedboolean如果设置为 true,贝塞尔样条将闭合。

getBounds()

public RectangleF getBounds()

获取对象的边界。

值:对象的边界。

Returns: RectangleF

getCenter()

public PointF getCenter()

获取形状的中心。

值:形状的中心。

Returns: PointF

getSegments()

public ShapeSegment[] getSegments()

获取形状的段。

值:形状段。

Returns: com.aspose.imaging.ShapeSegment[]

hasSegments()

public boolean hasSegments()

获取指示形状是否具有段的值。

值:如果形状有段,则为 True;否则为 false

Returns: boolean

getEndPoint()

public PointF getEndPoint()

获取结束形状点。

值:结束形状点。

Returns: PointF

getBounds(Matrix matrix)

public RectangleF getBounds(Matrix matrix)

获取对象的边界。

Parameters:

参数类型描述
matrixMatrix在计算边界之前要应用的矩阵。

Returns: RectangleF - The estimated object’s bounds.