M
Magnus
Hi
I'm converting a C# console program to a Windows form.
I use this code to grab a .gif and save it to a folder on
my C: drive
webC = new WebClient();
OutputBitmap = new Bitmap(webC.OpenRead
(myImgPath.AbsoluteUri.ToString()));
OutputBitmap.Save(@"C:\Images\test.gif");
OutputBitmap.Dispose();
There is no problem at all in the console version, but the
Windows Form throws this:
System.Runtime.InteropServices.ExternalException: A
generic error occurred in GDI+. at
System.Drawing.Image.Save(String filename, ImageCodecInfo
encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(String filename, ImageFormat
format)
at System.Drawing.Image.Save(String filename)
I've set every permission available in my Images folder,
but no success. Has anyone come across this and have an
idea of the problem?
Thanks
I'm converting a C# console program to a Windows form.
I use this code to grab a .gif and save it to a folder on
my C: drive
webC = new WebClient();
OutputBitmap = new Bitmap(webC.OpenRead
(myImgPath.AbsoluteUri.ToString()));
OutputBitmap.Save(@"C:\Images\test.gif");
OutputBitmap.Dispose();
There is no problem at all in the console version, but the
Windows Form throws this:
System.Runtime.InteropServices.ExternalException: A
generic error occurred in GDI+. at
System.Drawing.Image.Save(String filename, ImageCodecInfo
encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(String filename, ImageFormat
format)
at System.Drawing.Image.Save(String filename)
I've set every permission available in my Images folder,
but no success. Has anyone come across this and have an
idea of the problem?
Thanks