Table of Contents

Class BezierShape

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

Represents a bezier spline.

public sealed class BezierShape : PolygonShape, IOrderedShape
Inheritance
BezierShape
Implements
Inherited Members

Constructors

BezierShape()

Initializes a new instance of the BezierShape class.

public BezierShape()

BezierShape(PointF[])

Initializes a new instance of the BezierShape class.

public BezierShape(PointF[] points)

Parameters

points PointF[]

The points array.

BezierShape(PointF[], bool)

Initializes a new instance of the BezierShape class.

public BezierShape(PointF[] points, bool isClosed)

Parameters

points PointF[]

The points array.

isClosed bool

If set to true the bezier spline is closed.

Properties

Bounds

Gets the object's bounds.

public override RectangleF Bounds { get; }

Property Value

RectangleF

The object's bounds.

Center

Gets the shape's center.

public override PointF Center { get; }

Property Value

PointF

The shape's center.

EndPoint

Gets the ending shape point.

public override PointF EndPoint { get; }

Property Value

PointF

The ending shape point.

HasSegments

Gets a value indicating whether shape has segments.

public override bool HasSegments { get; }

Property Value

bool

True if shape has segments; otherwise, false.

Segments

Gets the shape segments.

public override ShapeSegment[] Segments { get; }

Property Value

ShapeSegment[]

The shape segments.

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.