Just the cell. The image inherits from Rectangle but only the dimensions are used.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of James Cowan > Sent: Monday, February 21, 2005 10:37 AM > To: [email protected] > Subject: Re: [iText-questions] Image cells > > thanks. that makes sense. > > > > PdfPCell cell = new PdfPCell(img, false); > > it is possible to set the background colour of either the > cell or the image > (inherits from Rectangle). Should it be either or both or > just the cell? > > James > > ----- Original Message ----- > From: "Paulo Soares" <[EMAIL PROTECTED]> > To: "James Cowan" <[EMAIL PROTECTED]>; > <[email protected]> > Sent: Saturday, February 19, 2005 9:27 AM > Subject: Re: [iText-questions] Image cells > > > > > > --- James Cowan <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi > > > > > > I am adding an image to a table and am not sure > > > about a couple of issues. > > > > > > What does the fit parameter do - I guess force the > > > image to fit into the > > > height and width of the cell? > > > > > > > Yes. > > > > > PdfPCell cell = new PdfPCell(img, false); > > > > > > Is it possible to set the background colour of the > > > image - by doing > > > setBackgroundColor of the image and/or the cell? > > > > > > > You can set the background of the cell. The places > > that the cell doesn't cover either by transparency or > > size will show in that color. > > > > > James Cowan > > > > > > > > > > > > > > ------------------------------------------------------- > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT > > > Products from real users. > > > Discover which products truly live up to the hype. > > > Start reading now. > > > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > _______________________________________________ > > > iText-questions mailing list > > > [email protected] > > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
