I have a variable number of points on a canvas.
Sometime its four other times 3 points, or 6.
Is there a function that can paint the area inside?
Thank you for your help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
TCanvas.Polygonfunction. Declare an array ofTPoint, set its length to the count of your points, specify each point’s coordinates (optionally modify canvas pen and/or brush) and pass this array to theTCanvas.Polygonfunction. Like in this boring example:Here’s how it looks like: