Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, March 2, 2010 3:53:11 AM(UTC)

grennel  
grennel

Groups: Registered
Posts: 4


I have a BMP file that appears to have no X or Y resolution stored in the header.
Different image tools show different dpi for the file.
Paint.net shows 96, photoshop elements shows 72.

I am using the following code (Leadtools v15) to get the XResolution, and it is returning 150;
Is 150 a default setting? Is there any way to determine a default has been returned?

Thanks,
Brandon Short
Aprimo
-------
using (CodecsImageInfo info = _codecs.GetInformation(s, false))
{
int dpi = imageInfo.XResolution;
}
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, March 2, 2010 5:37:51 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Yes, if the image doesn't contain DPI values, it's given a default resolution values (DPI) of 150.
You can determine whether or not the file has resolution values (DPI) by using the CodecsImageInfo.HasResolution property.
For more information, please see the following page:
http://www.leadtools.com/Help/LEADTOOLS/v15/DH/CO/Leadtools.Codecs~Leadtools.Codecs.CodecsImageInfo~HasResolution.html

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.185 seconds.