ArcShape Class

Summary: Represents an arc shape.

Module: aspose.psd.shapes

Full Name: aspose.psd.shapes.ArcShape

Inheritance: IOrderedShape, PieShape

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
ArcShape()Initializes a new instance of the ArcShape class.
ArcShape(rectangle, start_angle, sweep_angle)Initializes a new instance of the ArcShape class.
ArcShape(rectangle, start_angle, sweep_angle, is_closed)Initializes a new instance of the ArcShape class.

Properties

NameTypeAccessDescription
boundsRectangleFrGets the object’s bounds.
centerPointFrGets the shape’s center.
end_pointPointFrGets the ending shape point.
has_segmentsboolrGets a value indicating whether shape has segments.
is_closedboolr/wGets or sets a value indicating whether ordered shape is closed. When processing closed ordered shape the starting and ending points have no meaning.
left_bottomPointFrGets the left bottom rectangle point.
left_topPointFrGets the left top rectangle point.
rectangle_heightdoublerGets the rectangle height.
rectangle_widthdoublerGets the rectangle width.
right_bottomPointFrGets the right bottom rectangle point.
right_topPointFrGets the right top rectangle point.
segmentsShapeSegment[]rGets the shape segments.
start_anglefloatr/wGets or sets the start angle.
start_pointPointFrGets the starting shape point.
sweep_anglefloatr/wGets or sets the sweep angle.

Methods

NameDescription
get_bounds(matrix)Gets the object’s bounds.
get_bounds(matrix, pen)Gets the object’s bounds.
reverse()Reverses the order of points for this shape.
transform(transform)Applies the specified transformation to the shape.

Constructor: ArcShape()

 ArcShape() 

Initializes a new instance of the ArcShape class.

Constructor: ArcShape(rectangle, start_angle, sweep_angle)

 ArcShape(rectangle, start_angle, sweep_angle) 

Initializes a new instance of the ArcShape class.

Parameters:

ParameterTypeDescription
rectangleRectangleFThe rectangle.
start_anglefloatThe start angle.
sweep_anglefloatThe sweep angle.

Constructor: ArcShape(rectangle, start_angle, sweep_angle, is_closed)

 ArcShape(rectangle, start_angle, sweep_angle, is_closed) 

Initializes a new instance of the ArcShape class.

Parameters:

ParameterTypeDescription
rectangleRectangleFThe rectangle.
start_anglefloatThe start angle.
sweep_anglefloatThe sweep angle.
is_closedboolIf set to true the arc is closed. The closed arc is actually degenereates to an ellipse.

Method: get_bounds(matrix)

 get_bounds(matrix) 

Gets the object’s bounds.

Parameters:

ParameterTypeDescription
matrixMatrixThe matrix to apply before bounds will be calculated.

Returns

TypeDescription
RectangleFThe estimated object’s bounds.

Method: get_bounds(matrix, pen)

 get_bounds(matrix, pen) 

Gets the object’s bounds.

Parameters:

ParameterTypeDescription
matrixMatrixThe matrix to apply before bounds will be calculated.
penPenThe pen to use for object. This can influence the object’s bounds size.

Returns

TypeDescription
RectangleFThe estimated object’s bounds.

Method: transform(transform)

 transform(transform) 

Applies the specified transformation to the shape.

Parameters:

ParameterTypeDescription
transformMatrixThe transformation to apply.