in the following code:
Image img = Image.FromFile(@"c:\tmp.tif");
g.DrawImage(img, 0, 0);
i get the following exception:
An unhandled exception of type 'System.Runtime.InteropServices.ExternalException' occurred in System.Drawing.dll
Additional information: A generic error occurred in GDI+.
in FromFile function.
what's the problem and what can i do to resolve it?
The code itself works fine for me, check your TIF file is not corrupt or in use by something else.
Try a different file, or location, in case it is a permissions issue.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)