Method function IGDIPlus.IGPGraphicsPath.AddBezierF(TGPPointF;TGPPointF;TGPPointF;TGPPointF) : TGPGraphicsPath
From Mitov Wiki Doc
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Class: IGPGraphicsPath
Contents |
Syntax
Delphi:
function AddBezierF( pt1 : TGPPointF, pt2 : TGPPointF, pt3 : TGPPointF, pt4 : TGPPointF ) : TGPGraphicsPath;
C++ Builder:
TGPGraphicsPath __fastcall AddBezierF( TGPPointF pt1, TGPPointF pt2, TGPPointF pt3, TGPPointF pt4 );
Visual C++ (MFC):
AddBezierF( pt1, pt2, pt3, pt4 );
Summary
Adds a Bézier spline to the current figure of this path.
Description
Call this method to add a Bézier spline to the current figure of this path.
Example:
The following example creates a TGPGraphicsPath object path, adds a Bézier spline to path, closes the current figure (the only figure in this case), and then draws path.
var AGraphics : IGPGraphics; APath : IGPGraphicsPath; begin AGraphics := TGPGraphics.Create( ACanvas ); APath := TGLPath.Create(); APath.AddBezierF( MakePointF(50.0, 50.0), MakePointF(60.0, 20.0), MakePointF(70.0, 100.0), MakePointF(80.0, 50.0)); APath.CloseFigure(); // Draw the path. graphics.DrawPath( TGPPen.Create( aclRed ), APath ); end;