Delphi32.com - Home!
| Home/News | Downloads | Forums | D32 Magazine | Resources | Info and Facts |  
 
 Creating a PolyPolygon using a point array.


How do I create a PolyPolygon using a point array as shown in the example of Polygon?   

    Polygon is a method of TCanvas, and has been adapted to use a dynamic point array as a parameter. The PolyPolygon() function is a Windows GDI function and requires a pointer to a point array.

    Example:

    procedure TForm .Button Click(Sender: TObject); var ptArray : array[0..9] of TPOINT; PtCounts : array[0.. ] of integer; begin PtArray[0] := Point(0, 0); PtArray[ ] := Point(0, 00); PtArray[2] := Point( 00, 00); PtArray[3] := Point( 00, 0); PtArray[4] := Point(0, 0); PtCounts[0] := 5; PtArray[5] := Point(25, 25); PtArray[6] := Point(25, 75); PtArray[7] := Point(75, 75); PtArray[8] := Point(75, 25); PtArray[9] := Point(25, 25); PtCounts[ ] := 5; PolyPolygon(Form .Canvas.Handle, PtArray, PtCounts, 2); end;

    7/ 6/98 4:3 :28 PM

     



  << Previous Faq     Complete List     Next Faq >>  



 
 Hits/month  2,500,000+ 
 Downloads
 (Since May 2000)
 7,393,709 
 Total Files  6,023 
 Forum msgs  7,670 
 Articles/FAQs  70+/900+ 
Kylix
Tips n Tricks
FAQs
Knowledge Base
Bug Listings
Articles
Books
Newsgroups
Links
Submissions
Testimonials
Advertising
Contact Us
About Us
Search Amazon:
Top Selling Software at Amazon

| Home/News | Downloads | Forums | Resources | Info and Facts | Testimonials |
  Site Search:
 


Comments/Problems: Webmaster@delphi32.com
Copyright © 1998-2006, Delphi32.com. All rights reserved.
Terms of Use