IGPGraphicsPath.CloseFigure
From Mitov Wiki Doc
(Difference between revisions)
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
(One intermediate revision by one user not shown) |
Latest revision as of 00:30, 26 June 2013
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.
Description
Call this method to close the current figure of this path.
Example:
The following example creates a TGPGraphicsPath object path
and adds two figures to path. The code closes the first
figure, but leaves the second figure open.
var
AGraphics : IGPGraphics;
APath : IGPGraphicsPath; begin
AGraphics := TGPGraphics.Create( ACanvas );
APath := TGLPath.Create();
APath.AddArc( MakeRect(20, 20, 50, 100), 0.0, 180.0 ); // first figure
APath.CloseFigure(); // first figure closed
APath.AddArc( MakeRect(40, 40, 50, 100), 0.0, 180.0 ); // second figure
// Draw the path.
AGraphics.DrawPath( TGPPen( aclRed ), APath );
end;