Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public IEnumerable <IntVector2> Draw(Polygon polygon)
 {
     return(BoxPolygonDrawer.GetPoints(polygon));
 }