Connecting Tech Pros Worldwide Help | Site Map

How can I find out what DPI a Tiff or JPG was scaned in at in vb.net?

Jack
Guest
 
Posts: n/a
#1: Aug 14 '07
Hello,

I need to check TIFF or JPG file to get the DPI they were scanned in at 200,
300, etc. Any help would be great.

Thanks in advance for any help,

Jack

Armin Zingler
Guest
 
Posts: n/a
#2: Aug 14 '07

re: How can I find out what DPI a Tiff or JPG was scaned in at in vb.net?


"Jack" <jouin@webfoxmail.comschrieb
Quote:
Hello,
>
I need to check TIFF or JPG file to get the DPI they were scanned in
at 200, 300, etc. Any help would be great.
Don't know how to check it without loading the file, though, if you load the
image (see shared Image.FromFile method), examine the
HorizontalResolution/VerticalSolution properties.


Armin

Michael Phillips, Jr.
Guest
 
Posts: n/a
#3: Aug 14 '07

re: How can I find out what DPI a Tiff or JPG was scaned in at in vb.net?


This information is available, if the appropriate EXIF property tags exist
in the files.

They can be read by any EXIF tag viewer. The free Microsoft WIC component
will read these tags.

You can also read these tags programmatically by using the
IPropertySetStorage interface that is exposed by the windows shell API.

They are also exposed by gdiplus.


"Jack" <jouin@webfoxmail.comwrote in message
news:4DCD527E-651F-41F7-8025-8D083687A555@microsoft.com...
Quote:
Hello,
>
I need to check TIFF or JPG file to get the DPI they were scanned in at
200, 300, etc. Any help would be great.
>
Thanks in advance for any help,
>
Jack

Closed Thread