summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:05:23 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:05:23 +0000
commit22e9510a572605393556eb75b3037729ae2abe43 (patch)
treedf043fc283d4b9fda5928c985fc3e20e0d276bef /pdf-over-gui/src/main/java/at/asit/pdfover
parent74577792ca14945ad08d2d8edd5d79c585d416ce (diff)
downloadpdf-over-22e9510a572605393556eb75b3037729ae2abe43.tar.gz
pdf-over-22e9510a572605393556eb75b3037729ae2abe43.tar.bz2
pdf-over-22e9510a572605393556eb75b3037729ae2abe43.zip
Use specified font, scale emblem in placeholder
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@123 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
index 7fee3021..cb23d055 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
@@ -255,6 +255,7 @@ public class SignaturePanel extends JPanel {
if ((this.sigScreenWidth != this.prevSigScreenWidth)
|| (this.sigScreenHeight != this.prevSigScreenHeight))
{
+ // redraw scaled transparent placeholder
this.prevSigScreenWidth = this.sigScreenWidth;
this.prevSigScreenHeight = this.sigScreenHeight;
Image placeholder = this.sigPlaceholder.getScaledInstance(
@@ -262,6 +263,7 @@ public class SignaturePanel extends JPanel {
this.sigPlaceholderScaled = new BufferedImage(this.sigScreenWidth, this.sigScreenHeight, BufferedImage.TYPE_INT_ARGB);
Graphics g2 = this.sigPlaceholderScaled.getGraphics();
g2.drawImage(placeholder, 0, 0, null);
+ g2.dispose();
int[] phpixels = new int[this.sigScreenWidth * this.sigScreenHeight];
phpixels = this.sigPlaceholderScaled.getRGB(0, 0, this.sigScreenWidth, this.sigScreenHeight, phpixels, 0, this.sigScreenWidth);
for (int i = 0; i < phpixels.length; ++i) {