]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
add sleeping while waiting for consumer to finish
authoreschaeffer <eschaeffer@unknown>
Tue, 30 May 2000 12:50:30 +0000 (12:50 +0000)
committereschaeffer <eschaeffer@unknown>
Tue, 30 May 2000 12:50:30 +0000 (12:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193392 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/image/GifJpegImage.java
src/org/apache/fop/image/JimiImage.java

index 604b088bdf98563fc82e36057fc6bc4139674f4a..b5dbce0dc81d73c8786ddd10eb01548005c7a904 100644 (file)
@@ -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++) {
index 82fe7c54b2b80ac32a3bf225b22ff30b395663f6..749406ce25dab74be398c52e24210f0b03e7fff2 100644 (file)
@@ -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++) {