Exemplo n.º 1
0
 public Texture(int width, int height, Three.Net.Math.Color color)
 {
     using (var bitmap = new Bitmap(width, height))
     {
         using (var g = Graphics.FromImage(bitmap))
         {
             var brush = new SolidBrush(color.ToSystemDrawing());
             g.FillRectangle(brush, new Rectangle(0, 0, width, height));
         }
     }
 }