Image Dummy = Image.FromFile("image.png");
Dummy.Save("image.bmp", ImageFormat.Bmp);
what the question says
i have these
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
but i get an error saying that the namespace drawing does not exist in the namespace system :/
Add a reference to System.Drawing
When you use
usingstatements, this lets the compiler know that when you sayImageyou really meanSystem.Drawing.Imagefor example.However, now the compiler needs to know where System.Drawing is. By default, in Visual Studio, you will probably already reference
System,System.Data, andSystem.Xml.Now you are writing for
System.Drawing. Right-click the project in the project browser, and select “Add reference…”. This will present you with a tabbed interface that lets you select one of:System.Drawingfor example.