Using Graphics.DrawLine with List<Point>

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hvid Hat

    Using Graphics.DrawLine with List<Point>

    Hi

    Is it somehow possible to call Graphics.DrawLi ne with List<Point>? Does it
    only take Point arrays? If so, how can I (easily) convert my List<Point>
    to a Point array[]?


  • Peter Duniho

    #2
    Re: Using Graphics.DrawLi ne with List&lt;Point&g t;

    On Thu, 14 Feb 2008 14:00:42 -0800, Hvid Hat <noem@il.please wrote:
    Is it somehow possible to call Graphics.DrawLi ne with List<Point>? Does
    it only take Point arrays? If so, how can I (easily) convert my
    List<Pointto a Point array[]?
    Have you tried calling the List<>.ToArray( ) method?

    Comment

    • Hvid Hat

      #3
      Re: Using Graphics.DrawLi ne with List&lt;Point&g t;

      Hello Peter,
      >Is it somehow possible to call Graphics.DrawLi ne with List<Point>?
      >Does it only take Point arrays? If so, how can I (easily) convert my
      >List<Pointto a Point array[]?
      >>
      Have you tried calling the List<>.ToArray( ) method?
      Hah! I'm new to generic lists so didn't expect it to be so easy. Thanks!


      Comment

      Working...