This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, March 2, 2010 3:53:11 AM(UTC)
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;
}
#2
Posted
:
Tuesday, March 2, 2010 5:37:51 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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.