Class CurveShape
Tên không gian: Aspose.Imaging.Shapes Tổng hợp: Aspose.Imaging.dll (25.4.0)
Nó đại diện cho một hình dạng spline curved.
public sealed class CurveShape : PolygonShape, IOrderedShape
Inheritance
object ← ObjectWithBounds ← Shape ← PolygonShape ← CurveShape
Implements
Thành viên thừa kế
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()
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Shapes.CurveShape.
[JsonConstructor]
public CurveShape()
CurveShape(Điểm[])
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Shapes.CurveShape. áp suất mặc định của 0.5 được sử dụng.
public CurveShape(PointF[] points)
Parameters
points
PointF
[ ]
Các điểm array
CurveShape(Điểm[ ], bool)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Shapes.CurveShape. áp suất mặc định của 0.5 được sử dụng.
public CurveShape(PointF[] points, bool isClosed)
Parameters
points
PointF
[ ]
Các điểm array
isClosed
bool
Nếu cài đặt “truyền” thì curve sẽ bị đóng.
CurveShape(Điểm[ ], float)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Shapes.CurveShape.
public CurveShape(PointF[] points, float tension)
Parameters
points
PointF
[ ]
Các điểm array
tension
float
Cây căng thẳng.
CurveShape(Điểm[ ], float , bool)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Shapes.CurveShape.
public CurveShape(PointF[] points, float tension, bool isClosed)
Parameters
points
PointF
[ ]
Các điểm array
tension
float
Cây căng thẳng.
isClosed
bool
Nếu cài đặt “truyền” thì curve sẽ bị đóng.
Properties
Bounds
Nhận được giới hạn của đối tượng.
[JsonIgnore]
public override RectangleF Bounds { get; }
Giá trị bất động sản
Center
Nhận được trung tâm hình dạng.
[JsonIgnore]
public override PointF Center { get; }
Giá trị bất động sản
Segments
Nhận được các phân đoạn hình dạng.
[JsonIgnore]
public override ShapeSegment[] Segments { get; }
Giá trị bất động sản
ShapeSegment [ ]
Tension
Nhận hoặc đặt căng thẳng curve.
[JsonProperty]
public float Tension { get; set; }
Giá trị bất động sản
Methods
Equals(đối tượng)
Kiểm tra xem các đối tượng có bình đẳng hay không.
public override bool Equals(object obj)
Parameters
obj
object
đối tượng khác.
Returns
Kết quả so sánh bình đẳng
GetBounds(Matrix)
Nhận được giới hạn của đối tượng.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
Matrix để áp dụng trước khi giới hạn sẽ được tính toán.
Returns
giới hạn của các đối tượng ước tính.
GetBounds(Matrix và Pen)
Nhận được giới hạn của đối tượng.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
Matrix để áp dụng trước khi giới hạn sẽ được tính toán.
pen
Pen
Bút để sử dụng cho đối tượng. điều này có thể ảnh hưởng đến kích thước giới hạn của đối tượng.
Returns
giới hạn của các đối tượng ước tính.
GetHashCode()
Nhận mã hash của đối tượng hiện tại.
public override int GetHashCode()
Returns
Mã hash