How can I get the Dpi of an png file in the zip file?
If I don't use BufferedImage, how can I get an "com.lowagie.text.Image" object
from the InputSteam?
At 2011-07-03 17:04:08,"Paulo Soares" wrote:
You lost the dpi with the conversion to BufferedImage.
Paulo
- Original Message -
Fro
Image img= Image.getInstance("f:/totest/pic/11.png");
int dpix= img.getDpiX();
The getDpiX() return the correct value.
but the following code returned 0. Why?
InputStream sourceStream = getStream(source);
BufferedImage image= ImageIO.read(sourceStream);
com.lo