aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/image/JimiImage.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-08-24 13:43:00 +0000
committerJeremias Maerki <jeremias@apache.org>2005-08-24 13:43:00 +0000
commitbdda3117d3b3c95fb471587d592c5afd28cb3bec (patch)
treeeb47cbb864bfb4fce1dc086ab4be54d284456723 /src/java/org/apache/fop/image/JimiImage.java
parent668a2f4d33da6e126ea7909a10cb284c537d91f7 (diff)
downloadxmlgraphics-fop-bdda3117d3b3c95fb471587d592c5afd28cb3bec.tar.gz
xmlgraphics-fop-bdda3117d3b3c95fb471587d592c5afd28cb3bec.zip
Fixes unrecoverable exceptions causing BatchDiffer to fail.
Doing a clean separation of encoded and decoded data inside the image implementations. Helps fix a problem with the encoded CCITT TIFF being sent to the PS output even though this is not yet implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239661 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/image/JimiImage.java')
-rw-r--r--src/java/org/apache/fop/image/JimiImage.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/image/JimiImage.java b/src/java/org/apache/fop/image/JimiImage.java
index 103a067c4..35db0bbc1 100644
--- a/src/java/org/apache/fop/image/JimiImage.java
+++ b/src/java/org/apache/fop/image/JimiImage.java
@@ -76,8 +76,7 @@ public class JimiImage extends AbstractFopImage {
protected void loadImage() {
int[] tmpMap = null;
try {
- ImageProducer ip =
- Jimi.getImageProducer(inputStream,
+ ImageProducer ip = Jimi.getImageProducer(inputStream,
Jimi.SYNCHRONOUS | Jimi.IN_MEMORY);
FopImageConsumer consumer = new FopImageConsumer(ip);
ip.startProduction(consumer);
@@ -163,8 +162,7 @@ public class JimiImage extends AbstractFopImage {
// Should take care of the ColorSpace and bitsPerPixel
- this.bitmapsSize = this.width * this.height * 3;
- this.bitmaps = new byte[this.bitmapsSize];
+ this.bitmaps = new byte[this.width * this.height * 3];
for (int i = 0; i < this.height; i++) {
for (int j = 0; j < this.width; j++) {
int p = tmpMap[i * this.width + j];