I want to create a FopImage.
Thats the way i try to do it:
fopImage=imageFactory.loadImage("file:/d:/Grafiken/smiley.bmp", foUserAgent)
byte[] bytes=fopImage.getRessourceBytes();
My problem is that that the method getRessourceBytes() allways returns null.
I need the byte Array to fill a ImageObject of type
org.apache.fop.render.afp.modca.ImageObject
AFPDataStream afpStream= new AFPDataStream();
afpStream.startDocument(out);
afpStream.startPage(2970, 2100, 0);
afpStream.createLine(1000, 0, 1000, 2000, 10, Color.BLACK);
afpStream.endPage();
afpStream.startPage(2970, 2100, 0);
ImageObject imageObject=afpStream.getImageObject(0, 0, 1000, 1000);
Can anybody give me a hint how I'm able to create a simple FopImage?
And why the getRessourceBytes() allways returns null?
I'm thankful for every Idea.
Tobias
--
View this message in context:
http://old.nabble.com/Creating-FopImage-tp32812197p32812197.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]