hi
I would like to load an image from file, draw on it and save it as a different file. Something like this....
public static void updateWeatherMap ()
{
Image weatherMap = Image.FromFile (@"outputMap/weathermap.gif"
Pen bluePen = new Pen (Color.Blue, 3);
//this is the bit that doesn't work - but you get the idea//
weatherMap.DrawRectangle(bluePen,0,0,30,30);
weatherMap.Save(@"outputMap/weathermap1.gif",ImageFormat.Gif);
}
however, it doesn't work.
Any ideas ?
cheers
A
I would like to load an image from file, draw on it and save it as a different file. Something like this....
public static void updateWeatherMap ()
{
Image weatherMap = Image.FromFile (@"outputMap/weathermap.gif"
Pen bluePen = new Pen (Color.Blue, 3);
//this is the bit that doesn't work - but you get the idea//
weatherMap.DrawRectangle(bluePen,0,0,30,30);
weatherMap.Save(@"outputMap/weathermap1.gif",ImageFormat.Gif);
}
however, it doesn't work.
Any ideas ?
cheers
A