Example usage for com.itextpdf.text Image getBottom

List of usage examples for com.itextpdf.text Image getBottom

Introduction

In this page you can find the example usage for com.itextpdf.text Image getBottom.

Prototype

public float getBottom() 

Source Link

Document

Returns the lower left y-coordinate.

Usage

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 {
    /*/*w w  w.j a v  a  2 s .c o  m*/
     * 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);
}