Class BezierShape

Class BezierShape

Namespace: Aspose.Imaging.Shapes
Assembly: Aspose.Imaging.dll (25.2.0)

Represents a bezier spline.

public sealed class BezierShape : PolygonShape, IOrderedShape

Inheritance

objectObjectWithBoundsShapePolygonShapeBezierShape

Implements

IOrderedShape

Inherited Members

PolygonShape.Reverse(), PolygonShape.GetBounds(Matrix), PolygonShape.GetBounds(Matrix, Pen), PolygonShape.Transform(Matrix), PolygonShape.Equals(object), PolygonShape.GetHashCode(), PolygonShape.Points, PolygonShape.IsClosed, PolygonShape.Bounds, PolygonShape.Center, PolygonShape.Segments, PolygonShape.HasSegments, PolygonShape.StartPoint, PolygonShape.EndPoint, Shape.Equals(object), Shape.GetHashCode(), Shape.Center, Shape.Segments, Shape.HasSegments, ObjectWithBounds.GetBounds(Matrix), ObjectWithBounds.GetBounds(Matrix, Pen), ObjectWithBounds.Transform(Matrix), ObjectWithBounds.Equals(object), ObjectWithBounds.GetHashCode(), ObjectWithBounds.Bounds, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

BezierShape()

Initializes a new instance of the Aspose.Imaging.Shapes.BezierShape class.

[JsonConstructor]
public BezierShape()

BezierShape(PointF[])

Initializes a new instance of the Aspose.Imaging.Shapes.BezierShape class.

public BezierShape(PointF[] points)

Parameters

points PointF[]

The points array.

BezierShape(PointF[], bool)

Initializes a new instance of the Aspose.Imaging.Shapes.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.

[JsonIgnore]
public override RectangleF Bounds { get; }

Property Value

RectangleF

Center

Gets the shape’s center.

[JsonIgnore]
public override PointF Center { get; }

Property Value

PointF

EndPoint

Gets the ending shape point.

[JsonIgnore]
public override PointF EndPoint { get; }

Property Value

PointF

HasSegments

Gets a value indicating whether shape has segments.

[JsonIgnore]
public override bool HasSegments { get; }

Property Value

bool

Segments

Gets the shape segments.

[JsonIgnore]
public override ShapeSegment[] Segments { get; }

Property Value

ShapeSegment[]

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.