How to draw and Fill Polygon of unknown number of joints (number of joints (nodes) = Numcoor)

  • Thread starter Thread starter Hany Metry
  • Start date Start date
H

Hany Metry

Guest
Hi

How to draw and Fill Polygon of unknown number of joints (number of joints (nodes) = Numcoor)

Dim Points As New List(Of Point)
For vv = 0 To Numcoor - 1
Points.Add(New Point(CInt(Xcoor1(vv)), CInt(Ycoor1(vv))))
Next
e.Graphics.FillPolygon(mbrush1, Points(List(Of Point)))
e.Graphics.DrawPolygon(mpen, Points(List(Of Point)))


I wrote the above code but it is not accepted as shown below.

1489952.png

Please advice.

Kind Regards,


Hany Metry

Continue reading...
 
Back
Top