public Bitmap ManualDraw(Int32 width, Int32 height) { var image = new Bitmap(width, height); foreach (var polygon in Polygons) { foreach (var x in BoxPolygonDrawer.GetPoints(polygon)) { ((Action <IntVector2>)(point => image.SetPixel(point.X, point.Y, polygon.Color)))(x); } } return(image); }
public IEnumerable <IntVector2> Draw(Polygon polygon) { return(BoxPolygonDrawer.GetPoints(polygon)); }