Class CurveShape

Class CurveShape

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

Represents a curved spline shape.

public sealed class CurveShape : PolygonShape, IOrderedShape

Inheritance

objectObjectWithBoundsShapePolygonShapeCurveShape

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

CurveShape()

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

[JsonConstructor]
public CurveShape()

CurveShape(PointF[])

Initializes a new instance of the Aspose.Imaging.Shapes.CurveShape class. The default tension of 0.5 is used.

public CurveShape(PointF[] points)

Parameters

points PointF[]

The points array.

CurveShape(PointF[], bool)

Initializes a new instance of the Aspose.Imaging.Shapes.CurveShape class. The default tension of 0.5 is used.

public CurveShape(PointF[] points, bool isClosed)

Parameters

points PointF[]

The points array.

isClosed bool

if set to true the curve is closed.

CurveShape(PointF[], float)

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

public CurveShape(PointF[] points, float tension)

Parameters

points PointF[]

The points array.

tension float

The curve tension.

CurveShape(PointF[], float, bool)

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

public CurveShape(PointF[] points, float tension, bool isClosed)

Parameters

points PointF[]

The points array.

tension float

The curve tension.

isClosed bool

if set to true the curve 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

Segments

Gets the shape segments.

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

Property Value

ShapeSegment[]

Tension

Gets or sets the curve tension.

[JsonProperty]
public float Tension { get; set; }

Property Value

float

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.