Example usage for com.itextpdf.text.pdf.parser Matrix I32

List of usage examples for com.itextpdf.text.pdf.parser Matrix I32

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf.parser Matrix I32.

Prototype

int I32

To view the source code for com.itextpdf.text.pdf.parser Matrix I32.

Click Source Link

Document

the row=3, col=2 ('f', or Y translation) position in the matrix.

Usage

From source file:mkl.testarea.itext5.pdfcleanup.PdfCleanUpRegionFilter.java

License:Open Source License

private Point2D[] transformPoints(Matrix transormationMatrix, boolean inverse, Point2D... points) {
    AffineTransform t = new AffineTransform(transormationMatrix.get(Matrix.I11),
            transormationMatrix.get(Matrix.I12), transormationMatrix.get(Matrix.I21),
            transormationMatrix.get(Matrix.I22), transormationMatrix.get(Matrix.I31),
            transormationMatrix.get(Matrix.I32));
    Point2D[] transformed = new Point2D[points.length];

    if (inverse) {
        try {/* w  ww  . j  av a 2 s .  co  m*/
            t = t.createInverse();
        } catch (NoninvertibleTransformException e) {
            throw new RuntimeException(e);
        }
    }

    t.transform(points, 0, transformed, 0, points.length);

    return transformed;
}