How to Create a PolyPolygon using a point array?



How to Create a PolyPolygon using a point array?..

Answer / Santosh Singh Gwal

To create a Polygon using a point array in Delphi, you can use the TShape.Polygon method. Here is an example:nn```delphinvarn polyPoints: array of TPoint;nbeginn // Fill the polyPoints array with your pointsnn With TPolyPolygon.Create(Self) don Polygon(polyPoints); // Draw the polygon using the point arraynend;n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to Find the column and row of the cursor in a TRichEdit?

1 Answers  


How to Detect if the system time has been changed ?

1 Answers  


How to create Data Link File with Windows 2000?

1 Answers  


How to Copy contents of a control to the clipboard?

1 Answers  


How to Select an item in a TListView when the checkbox is checked ?

1 Answers  


How to generate steps to reproduce your issue for Borland Developer Support?

1 Answers  


How to generate an error for SELECT statements that divide by zero?

1 Answers  


How to Send an image to the printer ?

1 Answers  


Why do I get exception messages even though I am in protected code?

1 Answers  


How to Get the size of the desktop?

1 Answers  


How SQL Links determines if an MSSQL table can refreshed?

1 Answers  


How to custom draw menu items?

1 Answers  


Categories