Method function IGDIPlus.IGPGraphicsPath.AddBezier(Integer;Integer;Integer;Integer;Integer;Integer;Integer;Integer) : 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 AddBezier( x1 : Integer, y1 : Integer, x2 : Integer, y2 : Integer, x3 : Integer, y3 : Integer, x4 : Integer, y4 : Integer ) : TGPGraphicsPath;
C++ Builder:
TGPGraphicsPath __fastcall AddBezier( int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4 );
Visual C++ (MFC):
AddBezier( 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.AddBezier( 50, 50, 60, 20, 70, 100, 80, 50 );
APath.CloseFigure();
// Draw the path.
graphics.DrawPath( TGPPen.Create( aclRed ), APath );
end;