Turn from Smart light source A Generic error occurred in GDI +. Workaround
Use Image1. RotateFlip (Rotatefliptype.rotate90flipnone) method, an error occurred:
An unhandled exception of type ' System.Runtime.InteropServices.ExternalException ' occurred in System.Drawing.dll
Additional information:a Generic error occurred in GDI +.
But if I'm calling Image1 directly after generating the image1 of this image type. There is no problem with the RotateFlip method.
Reason:to retain access to the source bits, GDI + locks any source file, and forces the application to maintain the life of Any source stream, for the life of the Bitmap or the Image object.
constructor dependencies for bitmaps and images
http://support.microsoft.com/?id=814675
Workaround:
Image tmp = (image) m_list[0];
Bitmap Tmpbitmap = new Bitmap (TMP);
Tmpbitmap. RotateFlip (Rotatefliptype.rotate90flipnone);
Image image1 = Tmpbitmap;
A generic error occurred in GDI + solutions