Is there any reason why FillPolygon in Winform's paint event is slow? Is it because it calculates all px it should draw inside the triangle?
This is the part that uses the most time of the entire application to draw. Therefore, I would like to optimize it.
SolidBrush myBrush = new SolidBrush(Color.Black);
MatrixCellZoom zoom = rectangle.CellZoom;
List<Point> points = new List<Point>();
points.Add(zoom.pont1.ToPoint());
points.Add(zoom.pont2.ToPoint());
points.Add(zoom.pont3.ToPoint());
graphics.FillPolygon(myBrush, points.ToArray()); /* the show part */