Image.FromFile gives "Out of Memory" Exception for icon
I got "Out of memory" exception when load an ".ico" file use System.Drawing.Image.FromFile,
Image.FromFile(sFilePath, true);And I still got "Paramter is not vaild" exception when load the ico use Image.FromStream.
FileStream fs = new FileStream(sFilePath, FileMode.Open, FileAccess.Read);
Image img = Image.FromStream(fs, true, true);Who knows what am i doing wrong?
浙公网安备 33010602011771号