git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193392
13f79535-47bb-0310-9956-
ffa450edef68
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();
}
}
} else {
+ // TRANSLUCENT
/*
this.m_isTransparent = false;
for (int i = 0; i < this.m_width * this.m_height; i++) {
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();
}
}
} else {
+ // TRANSLUCENT
/*
this.m_isTransparent = false;
for (int i = 0; i < this.m_width * this.m_height; i++) {