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);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TPathData |
Description
Ajoute une courbe au TPathData en cours.
La courbe est définie par quatre points :
- Un point de départ--le dernier point de TPathData.
- Deux points de contrôle, spécifiés par les paramètres
ControlPoint1
etControlPoint2
. - Un point de fin, spécifié par le paramètre
EndPoint
.
CurveTo ajoute ControlPoint1
, ControlPoint2
et EndPoint
au tableau Points. Les points ajoutés sont du type CurveTo.
Pour déplacer le point de départ de la courbe, appelez la méthode MoveTo ou MoveToRel avant d'appeler CurveTo.
Pour trouver le point de fin de TPathData, appelez la méthode LastPoint.
Pour voir la différence entre les résultats de CurveTo et de CurveToRel, voir le tableau suivant.
Les points de paramètre utilisés dans l'exemple sont les suivants :
- Pour
ControlPoint1
-- CP1(a,b) - Pour
ControlPoint2
-- CP2(c,d) - Pour
EndPoint
-- EP(e,f)
Chemin d'accès initial | Résultat CurveTo(CP1,CP2,EP) | Résultat CurveToRel(CP1,CP2,EP) |
---|---|---|
Voir aussi
- 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