E
eBob.com
Windows is good at this. In Windows Explorer if I rest the pointer over a
jpg file a little window popups giving the "Dimensions:" of the file. I
assume the values are in pixels.
So I am wondering how I can get the dimensions of a jpg file in VB.Net? Is
there a straightforward Class/Method for this? I haven't found any posts on
this specific subject. Browsing through MSDN documentation it looks like I
might be able to use System.Drawing.Imaging.Metafile or
System.Drawing.Bitmap. Does that sound reasonable? Is there another
Class/Method specifically for this purpose.
(I know about Dsofile.dll but I tried it and it does not help with jpg
dimensions. And I know I could determine the dimersions by reading the
first few bytes of the file, but I am hoping there might be an official way
to get the dimensions info.)
Thanks, Bob
jpg file a little window popups giving the "Dimensions:" of the file. I
assume the values are in pixels.
So I am wondering how I can get the dimensions of a jpg file in VB.Net? Is
there a straightforward Class/Method for this? I haven't found any posts on
this specific subject. Browsing through MSDN documentation it looks like I
might be able to use System.Drawing.Imaging.Metafile or
System.Drawing.Bitmap. Does that sound reasonable? Is there another
Class/Method specifically for this purpose.
(I know about Dsofile.dll but I tried it and it does not help with jpg
dimensions. And I know I could determine the dimersions by reading the
first few bytes of the file, but I am hoping there might be an official way
to get the dimensions info.)
Thanks, Bob