B
BadButBit
Guest
I'm loading a bitmap from a file using the line
Bitmap bmpLoaded = (Bitmap) Bitmap.FromFile(ofd.FileName);
then I try to save an edited version of that bitmap to the save filename with this line
bmpWorkingCopy.Save(strCurrentFile);
but it refuses to save the file and gives me a "A generic error occurred in GDI" error message.
I think the app is trying to share the file with itself but I'm not sure how to resolve this error. any help?
BadButBit
my code is perfect until i don't find a bug
Continue reading...
Bitmap bmpLoaded = (Bitmap) Bitmap.FromFile(ofd.FileName);
then I try to save an edited version of that bitmap to the save filename with this line
bmpWorkingCopy.Save(strCurrentFile);
but it refuses to save the file and gives me a "A generic error occurred in GDI" error message.
I think the app is trying to share the file with itself but I'm not sure how to resolve this error. any help?
BadButBit
my code is perfect until i don't find a bug
Continue reading...