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.lowagie.text.Image iTextImage =
com.lowagie.text.Image.getInstance(image,null);
int dpix = iTextImage.getDpiX();
The getStream(source) is get the InputStream of the same png file from a zip
file.
thanks!!
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php