FMX.Graphics.TPathData.CurveTo
Delphi
procedure CurveTo(const ControlPoint1, ControlPoint2, EndPoint: TPointF);
C++
void __fastcall CurveTo(const System::Types::TPointF &ControlPoint1, const System::Types::TPointF &ControlPoint2, const System::Types::TPointF &EndPoint);
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TPathData |
Beschreibung
Hängt eine Kurve an das aktuelle TPathData-Objekt an.
Die Kurve wird durch 4 Punkte definiert:
- Ein Startpunkt – der letzte Punkt von TPathData.
- Zwei Steuerpunkte, die in den Parametern
ControlPoint1
undControlPoint2
angegeben werden. - Ein Endpunkt, der im Parameter
EndPoint
angegeben wird.
CurveTo fügt dem Array Points ControlPoint1
, ControlPoint2
und EndPoint
hinzu. Die hinzugefügten Punkte haben den Typ CurveTo.
Um den Startpunkt der Kurve zu verschieben, rufen Sie die Methode MoveTo oder MoveToRel vor CurveTo auf.
Um den Endpunkt von TPathData zu ermitteln, rufen Sie die Methode LastPoint auf.
In der folgenden Tabelle sind die Unterschiede zwischen den Ergebnissen von CurveTo und CurveToRel beschrieben.
Die folgenden Parameterpunkte werden im Beispiel verwendet:
- Für
ControlPoint1
– CP1(a,b) - Für
ControlPoint2
– CP2(c,d) - Für
EndPoint
– EP(e,f)
Ursprünglicher Pfad | Ergebnis von CurveTo(CP1,CP2,EP) | Ergebnis von CurveToRel(CP1,CP2,EP) |
---|---|---|
Siehe auch
- FMX.Graphics.TPathData.Points
- FMX.Graphics.TPathPointKind
- FMX.Graphics.TPathData.ClosePath
- FMX.Graphics.TPathData.CurveToRel
- FMX.Graphics.TPathData.HLineTo
- FMX.Graphics.TPathData.HLineToRel
- FMX.Graphics.TPathData.LineTo
- FMX.Graphics.TPathData.LineToRel
- FMX.Graphics.TPathData.LastPoint
- FMX.Graphics.TPathData.MoveTo
- FMX.Graphics.TPathData.MoveToRel
- FMX.Graphics.TPathData.SmoothCurveTo
- FMX.Graphics.TPathData.SmoothCurveToRel
- FMX.Graphics.TPathData.VLineTo
- FMX.Graphics.TPathData.VLineToRel