What is the best way to draw triangles other than drawing three line coords ?
Printable View
What is the best way to draw triangles other than drawing three line coords ?
Not sure if it is "better" but another way to get it done is to use the DrawPolygon method:
ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemDrawingGraphicsClassDrawPolygonTopic.htm
Thanks. Works fine with draw ploygon. I also like to know how to fill the traingle with color ? draw polygon uses a pen to draw so I am wondering how to fill it ? Thanks
Take a look at your docs:
ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemdrawinggraphicsmemberstopic.htm
FillPolygon:
ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemdrawinggraphicsclassfillpolygontopic.htm