Working in Visual Studio 2008. I\'m trying to draw on a PNG image and save that image again.
I do the following:
private Image img = Image.FromFile(\"fil
You cannot create a graphics from an indexed image format (PNG, GIF,...). You should use a Bitmap (file or convert your image to a bitmap).
Image img = Image.FromFile("file.png"); img = new Bitmap(img); newGraphics = Graphics.FromImage(img);