title: Simple way to draw a collection of points
body: <p>Is there any built in way to draw a collection of points? Currently I'm doing it like this:</p>
  
  <pre><code>public static Bitmap Draw(this IEnumerable&lt;Point&gt; points)
  {
      var horizontallySortedPoints = points.OrderBy(p =&gt; p.X).ToArray();
      var verticallySortedPoints = points.OrderBy(p =&gt; p.Y).ToArray();
  
      var leftmost = horizontallySortedPoints.First();
      var rightmost = horizontallySortedPoints.Last();
      var topmost = verticallySortedPoints.First();
      var bottommost = verticallySortedPoints.Last();
  
      var i = new Bitmap(rightmost.X - leftmost.X + 1, bottommost.Y - topmost.Y + 1);
      foreach (var item in points)
          i.SetPixel(item.X, item.Y, Color.Red);
  
      return i;
  }
  </code></pre>
  
  <p>This seems a lot of work. I have to find myself the leftmost and rightmost point, calculate the width etc. I'm not talking of performance or anything. Just knowing if framework has a way to accomplish this.</p>