PathShape Class
Contents
[
Hide
]Summary: The figure from the knots of the Bezier curve.
Module: aspose.psd.fileformats.psd.layers.layerresources
Full Name: aspose.psd.fileformats.psd.layers.layerresources.PathShape
Inheritance: IPathShape
Aspose.PSD Version: 24.12.0
Constructors
| Name | Description |
|---|---|
| PathShape() | Initializes a new instance of the PathShape class. |
| PathShape(length_record, bezier_knot_records) | Initializes a new instance of the PathShape class. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| is_closed | bool | r/w | Gets or sets a value indicating whether this instance is closed. |
| path_operations | PathOperations | r/w | Gets or sets the path operations (Boolean operations). |
| shape_index | ushort | r/w | Gets or sets the index of current path shape in layer. |
Methods
| Name | Description |
|---|---|
| get_items() | Gets array of Bezier knots. |
| set_items(bezier_points) | Assigns array of Bezier knots. |
| to_vector_path_records() | Creates the VectorPathRecord records based on this instance. |
Constructor: PathShape()
PathShape()
Initializes a new instance of the PathShape class.
Constructor: PathShape(length_record, bezier_knot_records)
PathShape(length_record, bezier_knot_records)
Initializes a new instance of the PathShape class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| length_record | LengthRecord | The length record. |
| bezier_knot_records | BezierKnotRecord[] | The bezier knot records. |
Method: get_items()
get_items()
Gets array of Bezier knots.
Returns
| Type | Description |
|---|---|
| BezierKnotRecord[] | Array of BezierKnotRecord |
Method: set_items(bezier_points)
set_items(bezier_points)
Assigns array of Bezier knots.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| bezier_points | BezierKnotRecord[] | Array of bezier knots |
Method: to_vector_path_records()
to_vector_path_records()
Creates the VectorPathRecord records based on this instance.
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<Aspose.PSD.FileFormats.Core.VectorPaths.VectorPathRecord> | Returns one LengthRecord and BezierKnotRecord for each point in this instance. |