Class CurveShape

Class CurveShape

Nama dari : Aspose.Imaging.Shapes Pengumpulan: Aspose.Imaging.dll (25.4.0)

Menampilkan bentuk spline yang tertutup.

public sealed class CurveShape : PolygonShape, IOrderedShape

Inheritance

object ObjectWithBounds Shape PolygonShape CurveShape

Implements

IOrderedShape

anggota yang diwarisi

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

Initifikasi contoh baru dari kelas Aspose.Imaging.Shapes.CurveShape.

[JsonConstructor]
public CurveShape()

CurveShape(PointF[])

Inicialisasi instansi baru dari kelas Aspose.Imaging.Shapes.CurveShape. ketegangan default 0.5 digunakan.

public CurveShape(PointF[] points)

Parameters

points PointF [ ]

Titik-titik yang ada di array

CurveShape(PointF[ ], dan bool)

Inicialisasi instansi baru dari kelas Aspose.Imaging.Shapes.CurveShape. ketegangan default 0.5 digunakan.

public CurveShape(PointF[] points, bool isClosed)

Parameters

points PointF [ ]

Titik-titik yang ada di array

isClosed bool

Jika ditentukan untuk ‘kebenaran’, kurva ditutup.

CurveShape(PointF[ ], dan float)

Initifikasi contoh baru dari kelas Aspose.Imaging.Shapes.CurveShape.

public CurveShape(PointF[] points, float tension)

Parameters

points PointF [ ]

Titik-titik yang ada di array

tension float

Ketegangan kurva

CurveShape(PointF[ ], dan float, bool)

Initifikasi contoh baru dari kelas Aspose.Imaging.Shapes.CurveShape.

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

Parameters

points PointF [ ]

Titik-titik yang ada di array

tension float

Ketegangan kurva

isClosed bool

Jika ditentukan untuk ‘kebenaran’, kurva ditutup.

Properties

Bounds

Mendapatkan batas objek.

[JsonIgnore]
public override RectangleF Bounds { get; }

Nilai Properti

RectangleF

Center

Mendapatkan pusat bentuk.

[JsonIgnore]
public override PointF Center { get; }

Nilai Properti

PointF

Segments

Mendapatkan segmen bentuk.

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

Nilai Properti

ShapeSegment [ ]

Tension

Dapatkan atau menetapkan tegangan kurva.

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

Nilai Properti

float

Methods

Equals(objek)

Periksa apakah objek yang sama.

public override bool Equals(object obj)

Parameters

obj object

objek yang lain.

Returns

bool

Hasil perbandingan kesetaraan.

GetBounds(Matrix)

Mendapatkan batas objek.

public override RectangleF GetBounds(Matrix matrix)

Parameters

matrix Matrix

Matriks yang harus diterapkan sebelum batas akan dihitung.

Returns

RectangleF

batas-batas objek yang diperkirakan.

GetBounds(Matriks dan Pen)

Mendapatkan batas objek.

public override RectangleF GetBounds(Matrix matrix, Pen pen)

Parameters

matrix Matrix

Matriks yang harus diterapkan sebelum batas akan dihitung.

pen Pen

Pen untuk digunakan untuk objek. ini dapat mempengaruhi ukuran batas objek.

Returns

RectangleF

batas-batas objek yang diperkirakan.

GetHashCode()

Dapatkan kode hash dari objek saat ini.

public override int GetHashCode()

Returns

int

dengan kode hash.

 Indonesia