Class CurveShape

Class CurveShape

名称: Aspose.Imaging.Shapes 收藏: Aspose.Imaging.dll (25.4.0)

代表一个曲线的形状。

public sealed class CurveShape : PolygonShape, IOrderedShape

Inheritance

object ObjectWithBounds Shape PolygonShape CurveShape

Implements

IOrderedShape

继承人

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()

启动了 Aspose.Imaging.Shapes.CurveShape 类的新例子。

[JsonConstructor]
public CurveShape()

CurveShape(点数[])

启动了 Aspose.Imaging.Shapes.CurveShape 类的新例子,使用了 0.5 的默认电压。

public CurveShape(PointF[] points)

Parameters

points PointF ( )

点点分。

CurveShape(点数( ), 博尔)

启动了 Aspose.Imaging.Shapes.CurveShape 类的新例子,使用了 0.5 的默认电压。

public CurveShape(PointF[] points, bool isClosed)

Parameters

points PointF ( )

点点分。

isClosed bool

如果设置为“真实”则曲线关闭。

CurveShape(点数( ), 航海)

启动了 Aspose.Imaging.Shapes.CurveShape 类的新例子。

public CurveShape(PointF[] points, float tension)

Parameters

points PointF ( )

点点分。

tension float

曲线紧张。

CurveShape(点数( ), float , bool)

启动了 Aspose.Imaging.Shapes.CurveShape 类的新例子。

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

Parameters

points PointF ( )

点点分。

tension float

曲线紧张。

isClosed bool

如果设置为“真实”则曲线关闭。

Properties

Bounds

抓住对象的界限。

[JsonIgnore]
public override RectangleF Bounds { get; }

财产价值

RectangleF

Center

得到形状的中心。

[JsonIgnore]
public override PointF Center { get; }

财产价值

PointF

Segments

接收形状部分。

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

财产价值

ShapeSegment ( )

Tension

接收或设置曲线紧张。

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

财产价值

float

Methods

Equals(对象)

检查对象是否平等。

public override bool Equals(object obj)

Parameters

obj object

其它对象。

Returns

bool

平等比较结果。

GetBounds(Matrix)

抓住对象的界限。

public override RectangleF GetBounds(Matrix matrix)

Parameters

matrix Matrix

在限制之前应用的矩阵将被计算。

Returns

RectangleF

估计对象的界限。

GetBounds(马特里克斯,笔)

抓住对象的界限。

public override RectangleF GetBounds(Matrix matrix, Pen pen)

Parameters

matrix Matrix

在限制之前应用的矩阵将被计算。

pen Pen

用于对象的铅笔,这可能会影响对象的边界大小。

Returns

RectangleF

估计对象的界限。

GetHashCode()

获取当前对象的哈希代码。

public override int GetHashCode()

Returns

int

哈希代码。

 中文