Reply to thread

I've used this method for probably 2 years now on my webserver without any problems. When I implemented it, my cpu average when from 70% to about 20% (the server does a lot of thumbnail work)


The cause according to microsoft is

"This performance difference occurs because the System.Drawing.Image.FromStream method always calls an image validation routine on the loaded image."


So my guess is that the method throws an exception if the object isn't an image, but not on this "new" method. But I guess that when you try something image related with the object you'll get an exception if it's not an image. So I don't think the difference is much and well worth it.


I'm not much of an IRC man, but maybe I'll check it out.


Top Bottom