Class CurveShape
Numele spaţiului: Aspose.Imaging.Shapes Asamblare: Aspose.Imaging.dll (25.4.0)
Representează o formă curvată.
public sealed class CurveShape : PolygonShape, IOrderedShape
Inheritance
object ← ObjectWithBounds ← Shape ← PolygonShape ← CurveShape
Implements
Membrii moștenitori
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()
Inițializează o nouă instanță a clasei Aspose.Imaging.Shapes.CurveShape.
[JsonConstructor]
public CurveShape()
CurveShape(Punctul[])
Inițializează o nouă instanță a clasei Aspose.Imaging.Shapes.CurveShape. se utilizează tensiunea standard de 0.5.
public CurveShape(PointF[] points)
Parameters
points
PointF
[]
Punctele sunt array.
CurveShape(Punctul[], şi bool)
Inițializează o nouă instanță a clasei Aspose.Imaging.Shapes.CurveShape. se utilizează tensiunea standard de 0.5.
public CurveShape(PointF[] points, bool isClosed)
Parameters
points
PointF
[]
Punctele sunt array.
isClosed
bool
În cazul în care este setat la „realitate”, curva este închisă.
CurveShape(Punctul[], în float)
Inițializează o nouă instanță a clasei Aspose.Imaging.Shapes.CurveShape.
public CurveShape(PointF[] points, float tension)
Parameters
points
PointF
[]
Punctele sunt array.
tension
float
Tensiunea curvată.
CurveShape(Punctul[], în float, bool)
Inițializează o nouă instanță a clasei Aspose.Imaging.Shapes.CurveShape.
public CurveShape(PointF[] points, float tension, bool isClosed)
Parameters
points
PointF
[]
Punctele sunt array.
tension
float
Tensiunea curvată.
isClosed
bool
În cazul în care este setat la „realitate”, curva este închisă.
Properties
Bounds
Obțineți limitele obiectului.
[JsonIgnore]
public override RectangleF Bounds { get; }
Valoarea proprietății
Center
Obțineți centrul formei.
[JsonIgnore]
public override PointF Center { get; }
Valoarea proprietății
Segments
Obțineți segmentele de formă.
[JsonIgnore]
public override ShapeSegment[] Segments { get; }
Valoarea proprietății
ShapeSegment []
Tension
Obține sau stabilește tensiunea curvei.
[JsonProperty]
public float Tension { get; set; }
Valoarea proprietății
Methods
Equals(Obiectul)
Verificați dacă obiectele sunt egale.
public override bool Equals(object obj)
Parameters
obj
object
celălalt obiect.
Returns
Rezultatul comparării egalităţii.
GetBounds(Matrix)
Obțineți limitele obiectului.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
Matrixul care trebuie aplicat înainte de limitele vor fi calculate.
Returns
Limitele obiectului estimat.
GetBounds(Matrică, Pen)
Obțineți limitele obiectului.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
Matrixul care trebuie aplicat înainte de limitele vor fi calculate.
pen
Pen
Penul de utilizare pentru obiect. Acest lucru poate influența dimensiunea limitelor obiectului.
Returns
Limitele obiectului estimat.
GetHashCode()
Obțineți codul hash al obiectului curent.
public override int GetHashCode()
Returns
Codul de hash.