Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-alpha2
-
None
Description
In BMPImageParser class, the values are typecasted to int before rounding off so output varies(other parsers has this logic correct).
int physicalWidthDpi = (int)((double)bhi.hResolution * 0.0254D);
int physicalHeightDpi = (int)((double)bhi.vResolution * 0.0254D);
Expected :
int physicalWidthDpi = (int)Math.round((double)bhi.hResolution * 0.0254D);
int physicalHeightDpi = (int)Math.round((double)bhi.vResolution * 0.0254D);