From e925a149dfb0e07ef995dbc5cffef31de0f4f4aa Mon Sep 17 00:00:00 2001 From: Gerald Palfinger Date: Wed, 12 Jan 2022 14:47:06 +0100 Subject: Do not use alpha channel when outputting to jpg --- .../at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pdf-as-web') 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); -- cgit v1.2.3