When I mouse over image files in Explorer, the dimensions of the image along with file size display in a tooltip popup.
Is there a simple command that will provide the dimensions of an image file given the path of the image file?
Printable View
When I mouse over image files in Explorer, the dimensions of the image along with file size display in a tooltip popup.
Is there a simple command that will provide the dimensions of an image file given the path of the image file?
What kind of Images? If you deal with bmp you can use ::LoadImage() and ::GetObject() ( look at this thread for sample ).Quote:
Originally Posted by Bob H
If you need to deal with other image formats i can suggest you to use Image Class of GDI+.
Cheers
All image formats (jpg, gif, png, etc).
I believe that GDI+ only comes with Windows XP. I don't want to have to dramatically alter my program and installation to simply get image dimensions.
In that case you will need to find lib(s) that know(s) how to handle different image file formats.Quote:
Originally Posted by Bob H
Look at CxImage it might give you good start.
Cheers