* Loads the image from the inputstream
*/
protected void loadImage() {
int[] tmpMap = null;
try {
ImageProducer ip = Jimi.getImageProducer(inputStream,
Jimi.SYNCHRONOUS | Jimi.IN_MEMORY);
FopImageConsumer consumer = new FopImageConsumer(ip);
ip.startProduction(consumer);
while (!consumer.isImageReady()) {
Thread.sleep(500);
}
this.height = consumer.getHeight();