diff options
author | eschaeffer <eschaeffer@unknown> | 2000-05-30 12:50:30 +0000 |
---|---|---|
committer | eschaeffer <eschaeffer@unknown> | 2000-05-30 12:50:30 +0000 |
commit | c67e1503f2bebaaa05410a07339b9d49e66f7154 (patch) | |
tree | 2319f90f85965a6bf03b3d1d24433171e0b92899 /src/org/apache/fop/image | |
parent | 637fe3e15d44c1c2dc1cbfa21f239fa21cf93b3c (diff) | |
download | xmlgraphics-fop-c67e1503f2bebaaa05410a07339b9d49e66f7154.tar.gz xmlgraphics-fop-c67e1503f2bebaaa05410a07339b9d49e66f7154.zip |
add sleeping while waiting for consumer to finish
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193392 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/image')
-rw-r--r-- | src/org/apache/fop/image/GifJpegImage.java | 3 | ||||
-rw-r--r-- | src/org/apache/fop/image/JimiImage.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/org/apache/fop/image/GifJpegImage.java b/src/org/apache/fop/image/GifJpegImage.java index 604b088bd..b5dbce0dc 100644 --- a/src/org/apache/fop/image/GifJpegImage.java +++ b/src/org/apache/fop/image/GifJpegImage.java @@ -95,7 +95,7 @@ public class GifJpegImage implements FopImage { FopImageConsumer consumer = new FopImageConsumer(ip); ip.startProduction(consumer); - while (! consumer.isImageReady()) {} + while (! consumer.isImageReady()) {Thread.sleep(500);} this.m_height = consumer.getHeight(); this.m_width = consumer.getWidth(); @@ -132,6 +132,7 @@ public class GifJpegImage implements FopImage { } } } else { + // TRANSLUCENT /* this.m_isTransparent = false; for (int i = 0; i < this.m_width * this.m_height; i++) { diff --git a/src/org/apache/fop/image/JimiImage.java b/src/org/apache/fop/image/JimiImage.java index 82fe7c54b..749406ce2 100644 --- a/src/org/apache/fop/image/JimiImage.java +++ b/src/org/apache/fop/image/JimiImage.java @@ -98,7 +98,7 @@ public class JimiImage implements FopImage { FopImageConsumer consumer = new FopImageConsumer(ip); ip.startProduction(consumer); - while (! consumer.isImageReady()) {} + while (! consumer.isImageReady()) {Thread.sleep(500);} this.m_height = consumer.getHeight(); this.m_width = consumer.getWidth(); @@ -135,6 +135,7 @@ public class JimiImage implements FopImage { } } } else { + // TRANSLUCENT /* this.m_isTransparent = false; for (int i = 0; i < this.m_width * this.m_height; i++) { |