Class CurveShape
Nome do espaço: Aspose.Imaging.Shapes Assembleia: Aspose.Imaging.dll (25.4.0)
Representa uma forma curvada de espina.
public sealed class CurveShape : PolygonShape, IOrderedShape
Inheritance
object ← ObjectWithBounds ← Shape ← PolygonShape ← CurveShape
Implements
Membros herdados
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()
Inicia uma nova instância da classe Aspose.Imaging.Shapes.CurveShape.
[JsonConstructor]
public CurveShape()
CurveShape(pontof[])
Inicia uma nova instância da classe Aspose.Imaging.Shapes.CurveShape. A tensão padrão de 0.5 é usada.
public CurveShape(PointF[] points)
Parameters
points
PointF
[ ]
Os pontos são array.
CurveShape(pontof[ ], O Bool)
Inicia uma nova instância da classe Aspose.Imaging.Shapes.CurveShape. A tensão padrão de 0.5 é usada.
public CurveShape(PointF[] points, bool isClosed)
Parameters
points
PointF
[ ]
Os pontos são array.
isClosed
bool
Se for definido como “verdadeiro”, a curva é fechada.
CurveShape(pontof[ ], A flota)
Inicia uma nova instância da classe Aspose.Imaging.Shapes.CurveShape.
public CurveShape(PointF[] points, float tension)
Parameters
points
PointF
[ ]
Os pontos são array.
tension
float
A tensão da curva.
CurveShape(pontof[ ], Flutão, Bool)
Inicia uma nova instância da classe Aspose.Imaging.Shapes.CurveShape.
public CurveShape(PointF[] points, float tension, bool isClosed)
Parameters
points
PointF
[ ]
Os pontos são array.
tension
float
A tensão da curva.
isClosed
bool
Se for definido como “verdadeiro”, a curva é fechada.
Properties
Bounds
Conheça os limites do objeto.
[JsonIgnore]
public override RectangleF Bounds { get; }
Valor da propriedade
Center
É o centro da forma.
[JsonIgnore]
public override PointF Center { get; }
Valor da propriedade
Segments
Obtenha os segmentos de forma.
[JsonIgnore]
public override ShapeSegment[] Segments { get; }
Valor da propriedade
ShapeSegment [ ]
Tension
Recebe ou coloca a tensão da curva.
[JsonProperty]
public float Tension { get; set; }
Valor da propriedade
Methods
Equals(Objeto)
Verifique se os objetos são iguais.
public override bool Equals(object obj)
Parameters
obj
object
O outro objeto.
Returns
O resultado da comparação da igualdade.
GetBounds(Matrix)
Conheça os limites do objeto.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
A matriz a aplicar antes dos limites será calculada.
Returns
Os limites do objeto estimado.
GetBounds(Matriz e Pen)
Conheça os limites do objeto.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
A matriz a aplicar antes dos limites será calculada.
pen
Pen
A caneta para usar para o objeto. isto pode influenciar o tamanho dos limites do objeto.
Returns
Os limites do objeto estimado.
GetHashCode()
Obtenha o código hash do objeto atual.
public override int GetHashCode()
Returns
O código de hash.