diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2014-11-27 21:02:26 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2014-11-27 21:02:26 +0100 |
commit | 302dee926ad9a38f45af54a887689ebf1fad1cdd (patch) | |
tree | 910f967fcc2f8a7a9f22a6576025fb4d2deefaa9 /pdf-over-gui/src/main/java/at/asit | |
parent | 93c95e60f52cb9b37c8cc3d5ceaa37417cf71001 (diff) | |
download | pdf-over-302dee926ad9a38f45af54a887689ebf1fad1cdd.tar.gz pdf-over-302dee926ad9a38f45af54a887689ebf1fad1cdd.tar.bz2 pdf-over-302dee926ad9a38f45af54a887689ebf1fad1cdd.zip |
ImageConverter fix
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/ImageConverter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/ImageConverter.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/ImageConverter.java index 7e59711c..d4ad4496 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/ImageConverter.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/ImageConverter.java @@ -160,7 +160,7 @@ public class ImageConverter { data.transparentPixel = -1; WritableRaster raster = bufferedImage.getRaster(); - int[] pixelArray = new int[3]; + int[] pixelArray = new int[bufferedImage.getColorModel().getNumComponents()]; for (int y = 0; y < data.height; y++) { for (int x = 0; x < data.width; x++) { raster.getPixel(x, y, pixelArray); |