Bitmap bitmap = new Bitmap(100, 100); for (int i = 0; i < 100; i++) { for (int j = 0; j < 100; j++) { bitmap.SetPixel(i, j, Color.Blue); } }
public static Bitmap CreateBitmap(int width, int height, Color color) { Bitmap b = new Bitmap(width, -height); using (Graphics g = Graphics.FromImage(b)) { g.Clear(color); } return b; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)