Shape 类
Summary: The shape. A continuous set of points connected using a specific rule.
Module: aspose.imaging
Full Name: aspose.imaging.Shape
Inheritance: ObjectWithBounds
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| bounds | RectangleF | r | 获取对象的边界。 |
| center | PointF | r | 获取形状的中心。 |
| has_segments | bool | r | 获取一个值,指示形状是否具有段。 |
| segments | ShapeSegment[] | r | 获取形状的段。 |
Methods
| Name | 描述 |
|---|---|
| get_bounds(matrix) | 获取对象的边界。 |
| get_bounds(matrix, pen) | 获取对象的边界。 |
| transform(transform) | 对形状应用指定的变换。 |
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 | 要应用的变换。 |