Method function IGDIPlus.IGPGraphicsPath.CloseFigure() : TGPGraphicsPath

From Mitov Wiki Doc
Revision as of 17:18, 18 October 2012 by David Alm (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 CloseFigure() : TGPGraphicsPath;

C++ Builder:

TGPGraphicsPath __fastcall CloseFigure();

Visual C++ (MFC):

CloseFigure();

Summary

Closes the current figure of this path.

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;

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox