Package net.sf.jsignpdf.types

Examples of net.sf.jsignpdf.types.RelRect.scale()


      final BufferedImage buffImg = p2i.getImageForPage(pageNr.intValue());
      if (buffImg != null) {
        final RelRect tmpRect = selectionImage.getRelRect();
        previewListenerDisabled = true;
        try {
          tmpRect.scale(getInt(pdfPageSize.getX()), getInt(pdfPageSize.getY()));
          tmpRect.setStartPoint(new FloatPoint(Float.parseFloat(tfPosLLX.getText()) / pdfPageSize.getX(), 1f
              - Float.parseFloat(tfPosLLY.getText()) / pdfPageSize.getY()));
          tmpRect.setEndPoint(new FloatPoint(Float.parseFloat(tfPosURX.getText()) / pdfPageSize.getX(), 1f
              - Float.parseFloat(tfPosURY.getText()) / pdfPageSize.getY()));
        } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.