aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at
diff options
context:
space:
mode:
authorGerald Palfinger <gerald.palfinger@iaik.tugraz.at>2022-01-12 14:47:06 +0100
committerGerald Palfinger <gerald.palfinger@iaik.tugraz.at>2022-01-12 14:47:06 +0100
commite925a149dfb0e07ef995dbc5cffef31de0f4f4aa (patch)
treea56e01227904dbc4a21d2d59e5c3ba55cf10f55c /pdf-as-web/src/main/java/at
parent08a09e29f16a6419e10ab3af2efbeda69cb84694 (diff)
downloadpdf-as-4-e925a149dfb0e07ef995dbc5cffef31de0f4f4aa.tar.gz
pdf-as-4-e925a149dfb0e07ef995dbc5cffef31de0f4f4aa.tar.bz2
pdf-as-4-e925a149dfb0e07ef995dbc5cffef31de0f4f4aa.zip
Do not use alpha channel when outputting to jpg
Diffstat (limited to 'pdf-as-web/src/main/java/at')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java
index 1036ef0b..f054db6a 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java
@@ -159,9 +159,8 @@ public class PlaceholderGeneratorServlet extends HttpServlet implements Placehol
BufferedImage.TYPE_INT_RGB); //use TYPE_INT_ARGB for png, TYPE_INT_RGB for jpg
Graphics g = off_Image.getGraphics();
- g.setColor(new Color(255,255,255,1));
- g.fillRect(0, 0, width, height);
g.setColor(Color.WHITE);
+ g.fillRect(0, 0, width, height);
g.fillRect(border, border, width - (2 * border), height - (2 * border));
//g.drawImage(base, 0, 0, 250, 98, 0, 0, base.getWidth(), base.getHeight(), null);
g.drawImage(qr, border, border, qrSize + border, qrSize + border, 0, 0, qr.getWidth(), qr.getHeight(), null);