> -----Original Message-----
> From: tp1705424 [mailto:[email protected]]
> Sent: Wednesday, November 9, 2011 11:39
> To: [email protected]
> Subject: Creating FopImage
> 
> 
> 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

The URL should start with "file://", but I don't know if that will necessarily 
solve your problem.

Eric Amick   Systems Engineer II
Legislative Computer Systems


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to