BezierShape 类

Summary: Represents a bezier spline.

Module: aspose.imaging.shapes

Full Name: aspose.imaging.shapes.BezierShape

Inheritance: IOrderedShape, PolygonShape

Constructors

Name描述
BezierShape()初始化 BezierShape 类的新实例。
BezierShape(points)初始化 BezierShape 类的新实例。
BezierShape(points, is_closed)初始化 BezierShape 类的新实例。

Properties

NameTypeAccess描述
boundsRectangleFr获取对象的边界。
centerPointFr获取形状的中心。
end_pointPointFr获取结束形状点。
has_segmentsboolr获取一个值,指示形状是否具有段。
is_closedboolr/w获取或设置指示形状是否闭合的值。
pointsPointF[]r/w获取或设置曲线点。
segmentsShapeSegment[]r获取形状的段。
start_pointPointFr获取起始形状点。

Methods

Name描述
get_bounds(matrix)获取对象的边界。
get_bounds(matrix, pen)获取对象的边界。
reverse()反转此形状的点顺序。
transform(transform)对形状应用指定的变换。

Constructor: BezierShape()

 BezierShape() 

初始化 BezierShape 类的新实例。

Constructor: BezierShape(points)

 BezierShape(points) 

初始化 BezierShape 类的新实例。

Parameters:

参数TypeDescription
pointsPointF[]点数组。

Constructor: BezierShape(points, is_closed)

 BezierShape(points, is_closed) 

初始化 BezierShape 类的新实例。

Parameters:

参数TypeDescription
pointsPointF[]点数组。
is_closedbool如果设置为 true,bezier spline 将闭合。

Method: get_bounds(matrix)

 get_bounds(matrix) 

获取对象的边界。

Parameters:

参数TypeDescription
matrixMatrix在计算边界之前要应用的矩阵。

Returns

TypeDescription
RectangleF估计的对象边界。

Method: get_bounds(matrix, pen)

 get_bounds(matrix, pen) 

获取对象的边界。

Parameters:

参数TypeDescription
matrixMatrix在计算边界之前要应用的矩阵。
penPen用于对象的笔。这可能会影响对象边界的大小。

Returns

TypeDescription
RectangleF估计的对象边界。

Method: transform(transform)

 transform(transform) 

对形状应用指定的变换。

Parameters:

参数TypeDescription
transformMatrix要应用的变换。