Method function IGDIPlus.IGPGraphicsPath.Reverse() : 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 Reverse() : TGPGraphicsPath;

C++ Builder:

TGPGraphicsPath __fastcall Reverse();

Visual C++ (MFC):

Reverse();

Summary

Reverses the order of the points that define this path's lines and curves.

Description

Call this method to reverse the order of the points that

define this path's lines and curves.



Example:

The following example creates a TGPGraphicsPath object path,
adds two lines to path, calls the Reverse method, and then
draws path.

var
  AGraphics : IGPGraphics;
  APath : IGPGraphicsPath;

begin
  AGraphics := TGPGraphics.Create( ACanvas );
  APath := TGLPath.Create();

  // Set up and call Reverse.


  APath.AddLines( [ MakePoint(10, 60), MakePoint(50, 110), MakePoint(90, 60) ] );
  APath.Reverse();

  // Draw the path.
  AGraphics.DrawPath( TGPPen( aclRed ), APath );
end;

Remarks A TGPGraphicsPath object has an array of points and an array of types. Each element in the array of types is a byte that specifies the point type and a set of flags for the corresponding element in the array of points. Possible point types and flags are listed in the TGPPathPointType enumeration.


This method reverses the order of the elements in the array of points and in the array of types.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox