aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-common/src/main/java/at')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java
index ab087f2c..39ebd3e0 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/ImageUtils.java
@@ -57,7 +57,7 @@ public class ImageUtils {
.getLogger(ImageUtils.class);
public static BufferedImage removeAlphaChannel(BufferedImage src) {
- if (src.getColorModel().hasAlpha()) {
+ //if (src.getColorModel().hasAlpha()) {
BufferedImage image = new BufferedImage(src.getWidth(),
src.getHeight(), BufferedImage.TYPE_INT_RGB);
Graphics2D g = image.createGraphics();
@@ -65,8 +65,8 @@ public class ImageUtils {
g.drawImage(src, 0, 0, null);
g.dispose();
return image;
- }
- return src;
+ //}
+ //return src;
/*
* BufferedImage rgbImage = new BufferedImage(src.getWidth(),
* src.getHeight(), BufferedImage.TYPE_3BYTE_BGR); for (int x = 0; x <