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

  • Thread starter Thread starter Jack
  • Start date Start date
J

Jack

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
 
Jack said:
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
 
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.
 
Back
Top