T
Thomas
Hi all,
Is there a faster way to read image dimensions other than something
like:
ImageOrig = System.Drawing.Image.FromFile(Filepath);
ImageOrigHeight = ImageOrig.Height;
ImageOrigWidth = ImageOrig.Width;
The problem is this operation takes quite a bit of time to complete
(100+ ms).
What I'm doing is reading the original image size, calculating the new
image size, and then checking a cache where I save the output. If I
could figure out a faster way to get the h/w of the image first it
would help.
thanks,
Tom
Is there a faster way to read image dimensions other than something
like:
ImageOrig = System.Drawing.Image.FromFile(Filepath);
ImageOrigHeight = ImageOrig.Height;
ImageOrigWidth = ImageOrig.Width;
The problem is this operation takes quite a bit of time to complete
(100+ ms).
What I'm doing is reading the original image size, calculating the new
image size, and then checking a cache where I save the output. If I
could figure out a faster way to get the h/w of the image first it
would help.
thanks,
Tom