Commit 408e5d5c by Liv Haapala

Fixed face image's aspect ratio

1 parent 7cf04205
......@@ -5,6 +5,7 @@ import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
......@@ -260,10 +261,7 @@ public class CardPrintBean implements CardPrintBeanLocal {
g.drawImage(base, 0, 0, base.getWidth(), base.getHeight(), null);
// g.drawImage(face, AffineTransform.getScaleInstance(0.31, 0.31),
// null);
//faceImage.scaleBy(((410.0 * 0.245) / faceImage.getHeight()));
g.drawImage(face, 166, 241, 318, 400, null);
g.drawImage(face, 174, 237, 301, 410, null);
g.setFont(new Font("Century gothic", Font.PLAIN, 70));
Font font = new Font("Century gothic", Font.PLAIN, 70);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!