Given the following code:
So, I create a new Image (img) and load its Graphics (gLevel) so I can draw on it, then I draw an Icon somewhere on it (can be anywhere, and can be any kind of Icon)...
After that is done I need to give my Image (img) a BACKCOLOR / BACKGROUND and oddly enough I cant seem to figure out how to set that property...
Any ideas, hints, and help would be greatly appreciated, thanks
Code:
Bitmap img = new Bitmap(nLevelWidth, nLevelHeight);
Graphics gLevel = Graphics.FromImage(img);
Bitmap imgBelow = _imgIcon;
imgBelow.MakeTransparent();
gLevel.DrawImage(imgBelow, i, j, SIZE, CELL_SIZE);
// NOW I NEED TO SET THE BACKCOLOR OF THE GRAPHICS BEFORE I PUT IT ON THE SCREEN
So, I create a new Image (img) and load its Graphics (gLevel) so I can draw on it, then I draw an Icon somewhere on it (can be anywhere, and can be any kind of Icon)...
After that is done I need to give my Image (img) a BACKCOLOR / BACKGROUND and oddly enough I cant seem to figure out how to set that property...
Any ideas, hints, and help would be greatly appreciated, thanks