Commit 7cf04205 by Liv Haapala

changed constructPng

1 parent ee74d751
......@@ -176,8 +176,8 @@ public class CardPrintBean implements CardPrintBeanLocal {
// Render face image
Image faceImage = new Image(pdf,
convertBufferedImageToPng(faceBufferedImage), ImageType.PNG);
//faceImage.setPosition(15.5, 67);
faceImage.setPosition(175, 222);
faceImage.setPosition(15.5, 67);
//faceImage.setPosition(175, 222);
// faceImage.scaleBy(0.32);
faceImage.scaleBy(((410.0 * 0.245) / faceImage.getHeight()));
faceImage.drawOn(page);
......@@ -280,12 +280,7 @@ public class CardPrintBean implements CardPrintBeanLocal {
g.setFont(font);
g.drawString(user.getUser().getNick(), nickX, nickY);
g.setFont(new Font("Century gothic", Font.BOLD, 45));
StringBuilder wholeName = new StringBuilder();
wholeName.append(user.getUser().getFirstnames()).append(" ").append(user.getUser().getLastname());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!