List of usage examples for com.itextpdf.text Image getLeft
public float getLeft()
From source file:com.vectorprint.report.itext.style.stylers.ImportTiff.java
License:Open Source License
protected void drawOnPage(com.itextpdf.text.Image img) throws VectorPrintException { /*/*from w ww. ja v a 2 s.c om*/ * we call draw here to use the positioning and shadow intelligence of the AbstractPositining styler. * this styler uses the top left corner of the argument rectangle as its positioning base. * therefore we call this method with the image rectangle moved down by its height, the effect is * that the image will be positioned as expected. */ draw(new Rectangle(img.getLeft(), img.getBottom() - img.getHeight(), img.getRight(), img.getBottom()), null); }