<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.mitov.com/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.mitov.com/wiki/index.php?action=history&amp;feed=atom&amp;title=IGPGraphicsPath.GetPathData</id>
		<title>IGPGraphicsPath.GetPathData - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.mitov.com/wiki/index.php?action=history&amp;feed=atom&amp;title=IGPGraphicsPath.GetPathData"/>
		<link rel="alternate" type="text/html" href="http://www.mitov.com/wiki/index.php?title=IGPGraphicsPath.GetPathData&amp;action=history"/>
		<updated>2026-05-03T03:59:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://www.mitov.com/wiki/index.php?title=IGPGraphicsPath.GetPathData&amp;diff=1735&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.mitov.com/wiki/index.php?title=IGPGraphicsPath.GetPathData&amp;diff=1735&amp;oldid=prev"/>
				<updated>2011-11-22T00:15:52Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
This is a Beta Read Only version of this page. &lt;br /&gt;
Please review and send recommendations to [mailto:mitov@mitov.com mitov@mitov.com]. &lt;br /&gt;
We will enable the editing as soon as we are happy with the overall Wiki site.&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Call this method to get an IGPPathData interface to object&lt;br /&gt;
 containing an array of points and an array of point types&lt;br /&gt;
 from this path. Together, these two arrays define the lines,&lt;br /&gt;
 curves, figures, and markers of this path.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Example:&lt;br /&gt;
 &lt;br /&gt;
 The following example creates and draws a path that has a&lt;br /&gt;
 line, a rectangle, an ellipse, and a curve. The code gets the&lt;br /&gt;
 path's points and types by passing the address of a PathData&lt;br /&gt;
 object to the GetPathData method. Then the code draws each of&lt;br /&gt;
 the path's data points.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 var&lt;br /&gt;
   AGraphics : IGPGraphics;&lt;br /&gt;
   APath : IGPGraphicsPath;&lt;br /&gt;
   APathData : IGPPathData;&lt;br /&gt;
   ABrush : IGPPen;&lt;br /&gt;
   I : Integer;&lt;br /&gt;
 &lt;br /&gt;
 begin&lt;br /&gt;
   AGraphics := TGPGraphics.Create( ACanvas );&lt;br /&gt;
   APath := TGLPath.Create();&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
 &amp;lt;code lang=&amp;quot;delphi&amp;quot;&amp;gt;&lt;br /&gt;
   APath.AddLine(20, 100, 150, 200);&lt;br /&gt;
   APath.AddRectangle(MakeRect(40, 30, 80, 60));&lt;br /&gt;
   APath.AddEllipse(MakeRect(200, 30, 200, 100));&lt;br /&gt;
   APath.AddCurve([&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
       MakePointF(200, 200),&lt;br /&gt;
       MakePointF(250, 240),&lt;br /&gt;
       MakePointF(200, 300),&lt;br /&gt;
       MakePointF(300, 310),&lt;br /&gt;
       MakePointF(250, 350)&lt;br /&gt;
       ]);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
 &amp;lt;code lang=&amp;quot;delphi&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
   // Draw the path.&lt;br /&gt;
   AGraphics.DrawPath( TGPPen.Create( aclBlue ), &amp;amp;amp;path);&lt;br /&gt;
 &lt;br /&gt;
   // Get the path data.&lt;br /&gt;
   APathData := APath.GetPathData();&lt;br /&gt;
 &lt;br /&gt;
   // Draw the path's data points.&lt;br /&gt;
   ABrush := TGPSolidBrush.Create( aclRed );&lt;br /&gt;
   for I := 0 to APathData.Count - 1 do&lt;br /&gt;
   {&lt;br /&gt;
      AGraphics.FillEllipse(&lt;br /&gt;
         ABrush,&lt;br /&gt;
         APathData.Points[ I ].X - 3.0,&lt;br /&gt;
         APathData.Points[ I ].Y - 3.0,&lt;br /&gt;
         6.0,&lt;br /&gt;
         6.0);&lt;br /&gt;
   }&lt;br /&gt;
 end;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Remarks&lt;br /&gt;
A IGPGraphicsPath object has an array of points and an array&lt;br /&gt;
of types. Each element in the array of types is a byte that&lt;br /&gt;
specifies the point type and a set of flags for the&lt;br /&gt;
corresponding element in the array of points. Possible point&lt;br /&gt;
types and flags are listed in the TGPPathPointType&lt;br /&gt;
enumeration.&lt;/div&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	</feed>