Mark M. Hall <Mark.Hall <at> mail.room3b.eu> writes:

> 
> On Thursday 15 March 2007 14:28, mekafi tammar wrote:
> > Hi, I am very new in iText and I have this problem :
> > In a RTF document I want to add an existing image (a java.awt.Image) in
> > a cell, but it faills, I use the code below :
> >From the code I cannot determine what the problem is, since I have no access 
> to this TraceRose2D class. Perhaps you could describe the symptoms a bit more 
> precisely? Are you just getting no image? Is there an exception?
> 
Hi, some precision :

The TraceRose2D class (which extends java.awt.Canvas) is the class where I have
to "draw" a chart (Graphics2D) and I get this chart as an Image.
I'm quite sure that the chart is done (I add it to a JFrame and it displays
correctly) but when I try to get this Image as an itext.Image
(Image.getInstance()) it doesn't work (the image.getDpiX() and image.getDpiY()
return 0).
There is no exception raised.
Have any idea.

The TraceRose2D class works also perfectly in another project where I realise a
PDF document(not with iText).

Regards,
Mékafi.






-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to