Table of Contents

Class ArcShape

Namespace
Aspose.Imaging.Shapes
Assembly
Aspose.Imaging.dll

Represents an arc shape.

public sealed class ArcShape : PieShape, IOrderedShape
Inheritance
ArcShape
Implements
Inherited Members

Constructors

ArcShape()

Initializes a new instance of the ArcShape class.

public ArcShape()

ArcShape(RectangleF, float, float)

Initializes a new instance of the ArcShape class.

public ArcShape(RectangleF rectangle, float startAngle, float sweepAngle)

Parameters

rectangle RectangleF

The rectangle.

startAngle float

The start angle.

sweepAngle float

The sweep angle.

ArcShape(RectangleF, float, float, bool)

Initializes a new instance of the ArcShape class.

public ArcShape(RectangleF rectangle, float startAngle, float sweepAngle, bool isClosed)

Parameters

rectangle RectangleF

The rectangle.

startAngle float

The start angle.

sweepAngle float

The sweep angle.

isClosed bool

If set to true the arc is closed. The closed arc is actually degenereates to an ellipse.

Properties

EndPoint

Gets the ending shape point.

public PointF EndPoint { get; }

Property Value

PointF

The ending shape point.

IsClosed

Gets or sets a value indicating whether ordered shape is closed. When processing closed ordered shape the starting and ending points have no meaning.

public bool IsClosed { get; set; }

Property Value

bool

True if this ordered shape is closed; otherwise, false.

Segments

Gets the shape segments.

public override ShapeSegment[] Segments { get; }

Property Value

ShapeSegment[]

The shape segments.

StartPoint

Gets the starting shape point.

public PointF StartPoint { get; }

Property Value

PointF

The starting shape point.

Methods

Equals(object)

Check if objects are equal.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

The equality comparison result.

GetBounds(Matrix)

Gets the object's bounds.

public override RectangleF GetBounds(Matrix matrix)

Parameters

matrix Matrix

The matrix to apply before bounds will be calculated.

Returns

RectangleF

The estimated object's bounds.

GetBounds(Matrix, Pen)

Gets the object's bounds.

public override RectangleF GetBounds(Matrix matrix, Pen pen)

Parameters

matrix Matrix

The matrix to apply before bounds will be calculated.

pen Pen

The pen to use for object. This can influence the object's bounds size.

Returns

RectangleF

The estimated object's bounds.

GetHashCode()

Get hash code of the current object.

public override int GetHashCode()

Returns

int

The hash code.

Reverse()

Reverses the order of points for this shape.

public void Reverse()