PathShape Class

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.4.0

Constructors

NameDescription
PathShape()Initializes a new instance of the PathShape class.
PathShape(length_record, bezier_knot_records)Initializes a new instance of the PathShape class.

Properties

NameTypeAccessDescription
is_closedboolr/wGets or sets a value indicating whether this instance is closed.
path_operationsPathOperationsr/wGets or sets the path operations (Boolean operations).
shape_indexushortr/wGets or sets the index of current path shape in layer.

Methods

NameDescription
get_items()Gets array of Bezier knots.
set_items(bezier_points)Assignes array of Bexier 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:

ParameterTypeDescription
length_recordLengthRecordThe length record.
bezier_knot_recordsBezierKnotRecord[]The bezier knot records.

Method: get_items()

 get_items() 

Gets array of Bezier knots.

Returns

TypeDescription
BezierKnotRecord[]Array of BezierKnotRecord

Method: set_items(bezier_points)

 set_items(bezier_points) 

Assignes array of Bexier knots.

Parameters:

ParameterTypeDescription
bezier_pointsBezierKnotRecord[]Array of bezier knots

Method: to_vector_path_records()

 to_vector_path_records() 

Creates the VectorPathRecord records based on this instance.

Returns

TypeDescription
System.Collections.Generic.IEnumerable<Aspose.PSD.FileFormats.Core.VectorPaths.VectorPathRecord>Returns one LengthRecord and BezierKnotRecord for each point in this instance.