CurveShape 类
内容
[
隐藏
]Summary: Represents a curved spline shape.
Module: aspose.imaging.shapes
Full Name: aspose.imaging.shapes.CurveShape
Inheritance: IOrderedShape, PolygonShape
Constructors
| Name | 描述 |
|---|---|
| CurveShape() | 初始化一个新的 CurveShape 类实例。 |
| CurveShape(points) | 初始化一个新的 CurveShape 类实例。使用默认张力 0.5。 |
| CurveShape(points, is_closed) | 初始化一个新的 CurveShape 类实例。使用默认张力 0.5。 |
| CurveShape(points, tension) | 初始化一个新的 CurveShape 类实例。 |
| CurveShape(points, tension, is_closed) | 初始化一个新的 CurveShape 类实例。 |
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| bounds | RectangleF | r | 获取对象的边界。 |
| center | PointF | r | 获取形状的中心。 |
| end_point | PointF | r | 获取结束形状点。 |
| has_segments | bool | r | 获取一个值,指示形状是否具有段。 |
| is_closed | bool | r/w | 获取或设置指示形状是否闭合的值。 |
| points | PointF[] | r/w | 获取或设置曲线点。 |
| segments | ShapeSegment[] | r | 获取形状的段。 |
| start_point | PointF | r | 获取起始形状点。 |
| 张力 | float | r/w | 获取或设置曲线张力。 |
Methods
| Name | 描述 |
|---|---|
| create_with_point_fs_closed(points, is_closed) | 初始化一个新的 CurveShape 类实例。使用默认张力 0.5。 |
| create_with_point_fs_tension(points, tension) | 初始化一个新的 CurveShape 类实例。 |
| get_bounds(matrix) | 获取对象的边界。 |
| get_bounds(matrix, pen) | 获取对象的边界。 |
| reverse() | 反转此形状的点顺序。 |
| transform(transform) | 对形状应用指定的变换。 |
Constructor: CurveShape()
CurveShape()
初始化一个新的 CurveShape 类实例。
Constructor: CurveShape(points)
CurveShape(points)
初始化一个新的 CurveShape 类实例。使用默认张力 0.5。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| points | PointF[] | 点数组。 |
Constructor: CurveShape(points, is_closed)
CurveShape(points, is_closed)
初始化一个新的 CurveShape 类实例。使用默认张力 0.5。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| points | PointF[] | 点数组。 |
| is_closed | bool | 如果设置为 |
Constructor: CurveShape(points, tension)
CurveShape(points, tension)
初始化一个新的 CurveShape 类实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| points | PointF[] | 点数组。 |
| 张力 | float | 曲线张力。 |
Constructor: CurveShape(points, tension, is_closed)
CurveShape(points, tension, is_closed)
初始化一个新的 CurveShape 类实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| points | PointF[] | 点数组。 |
| 张力 | float | 曲线张力。 |
| is_closed | bool | 如果设置为 |
Method: create_with_point_fs_closed(points, is_closed) [static]
create_with_point_fs_closed(points, is_closed)
初始化一个新的 CurveShape 类实例。使用默认张力 0.5。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| points | PointF[] | 点数组。 |
| is_closed | bool | 如果设置为 |
Returns
| Type | Description |
|---|---|
| CurveShape |
Method: create_with_point_fs_tension(points, tension) [static]
create_with_point_fs_tension(points, tension)
初始化一个新的 CurveShape 类实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| points | PointF[] | 点数组。 |
| 张力 | float | 曲线张力。 |
Returns
| Type | Description |
|---|---|
| CurveShape |
Method: get_bounds(matrix)
get_bounds(matrix)
获取对象的边界。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| matrix | Matrix | 在计算边界之前要应用的矩阵。 |
Returns
| Type | Description |
|---|---|
| RectangleF | 估计的对象边界。 |
Method: get_bounds(matrix, pen)
get_bounds(matrix, pen)
获取对象的边界。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| matrix | Matrix | 在计算边界之前要应用的矩阵。 |
| pen | Pen | 用于对象的笔。这可能会影响对象边界的大小。 |
Returns
| Type | Description |
|---|---|
| RectangleF | 估计的对象边界。 |
Method: transform(transform)
transform(transform)
对形状应用指定的变换。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| transform | Matrix | 要应用的变换。 |