Results 1 to 4 of 4

Thread: How to draw triangles ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    28

    How to draw triangles ?

    What is the best way to draw triangles other than drawing three line coords ?
    Regards --
    Vujjeni

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    28
    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
    Regards --
    Vujjeni

  4. #4
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width