Method function IGDIPlus.IGPGraphicsPath.StartFigure() : 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 StartFigure() : TGPGraphicsPath;
C++ Builder:
TGPGraphicsPath __fastcall StartFigure();
Visual C++ (MFC):
StartFigure();
Summary
Starts a new figure without closing the current figure. Subsequent points added to this path are added to the new figure.
Description
Call this method to start a new figure without closing the
current figure. Subsequent points added to this path are added to the new figure. Example: The following example creates a path and adds two figures to that path. The first figure has three arcs, and the second figure has two arcs. The arcs within a figure are connected by straight lines, but there is no connecting line between the last arc in the first figure and the first arc in the second figure.
var AGraphics : IGPGraphics; APath : IGPGraphicsPath; begin AGraphics := TGPGraphics.Create( ACanvas ); APath := TGLPath.Create();
APath.AddArc(0, 0, 100, 50, 0.0, 180.0);
APath.AddArc(0, 60, 100, 50, 0.0, 180.0);
APath.AddArc(0, 120, 100, 50, 0.0, 180.0);
// Start a new figure (subpath).
// Do not close the current figure.
APath.StartFigure();
APath.AddArc(0, 180, 100, 50, 0.0, 180.0);
APath.AddArc(0, 240, 100, 50, 0.0, 180.0);
AGraphics.DrawPath( TGPPen( aclRed ), APath ); end;