Method function IGDIPlus.IGPGraphicsPath.AddBezierF(Single;Single;Single;Single;Single;Single;Single;Single) : TGPGraphicsPath
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( x1 : Single, y1 : Single, x2 : Single, y2 : Single, x3 : Single, y3 : Single, x4 : Single, y4 : Single ) : TGPGraphicsPath;
C++ Builder:
TGPGraphicsPath __fastcall AddBezierF( float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 );
Visual C++ (MFC):
AddBezierF( x1, y1, x2, y2, x3, y3, x4, y4 );
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( 50.0, 50.0, 60.0, 20.0, 70.0, 100.0, 80.0, 50.0 ); APath.CloseFigure(); // Draw the path. graphics.DrawPath( TGPPen.Create( aclRed ), APath ); end;