Walter,
Thanks for update.
In the example you referenced, he makes this call:
Image img = Image.FromFile(dlg.FileName);
Thus I assume that the entire image file was loaded into memory to prepare
to query the Image object for properties. My question is whether there is
any way to get access to the pixel resulution of the file without loading
the file into memory. (My reason for asking is that it is my understanding
the JPEG files have metadata within the file that can be extracted without
loading the entire file. I dont know if this is true for gif, png, etc.)
According to the earlier post from Sandeep, it sound like the answer is
likely "no". But if anyone else has ideas, I'd appreciate them.
Thanks,
Bruce
"Walter Wang [MSFT]" <wa****@online.microsoft.com> wrote in message
news:jX**************@TK2MSFTNGXA01.phx.gbl...
Hi Bruce,
Thank you for posting!
I think you can use GDI+ to read the metadata from the image file. Here's
a
sample:
# Discovering the properties of an image
http://www.bobpowell.net/discoverproperties.htm
Hope this helps.
Regards,
Walter Wang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.