title: C# fill polygon (triangle)
body: <p>I have problem with draw two polygons.
  I want to fill two triangles, but one is greater than the second.
  I am using UserControl in winforms.
  Code:</p>
  
  <pre><code>Point[] DOWN = new Point[] {new Point(0, 0), new Point(10, 0), new Point(5, 5)};
  Point[] UP = new Point[] { new Point(0, 15), new Point(10, 15), new Point(5, 10) };
  
  protected override void OnPaint(PaintEventArgs e)
          {
              base.OnPaint(e);
              SolidBrush brush = new SolidBrush(Color.FromArgb(253, 198, 19));       
              e.Graphics.FillPolygon(brush, DOWN);
              e.Graphics.FillPolygon(brush, UP);
              brush.Dispose();
          }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/OAqtx.png" alt="This is result of fill polygons">
  Where is problem?</p>