Example usage for com.itextpdf.text Image getRight

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

Introduction

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

Prototype

public float getRight() 

Source Link

Document

Returns the upper right x-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 {
    /*// ww  w .  java  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);
}