Thanks Paulo for your reaction.

Still it doesn't work the way i like to, what's going wrong, just testing to
get the bg red first.

public class TESTCell : IPdfPCellEvent
    {
        public void CellLayout(PdfPCell cell, Rectangle rect,
PdfContentByte[] canvas)
        {
            PdfContentByte cb = canvas[PdfPTable.BACKGROUNDCANVAS];
            cb.SetRGBColorFill(0xFF, 0x00, 0x00);
            cb.Fill();
            cb.ResetRGBColorFill();
        }
    }

in my program i call:
TESTCell test = new TESTCell();
cell.CellEvent = test;
ptable.AddCell(cell);

all the help is appreciated.


Paulo Soares-3 wrote:
> 
> It works exactly the same in C# as it does in Java. The interface names 
> start with 'I' but I can't believe that that's the problem.
> 
> Paulo
> 
> ----- Original Message ----- 
> From: "Ivar Kunst" <[email protected]>
> To: <[email protected]>
> Sent: Friday, May 01, 2009 2:15 PM
> Subject: Re: [iText-questions] Transperant Cell backgroundColor
> 
> 
> 
> Hi all,
> 
> I've been fighting with this problem for some time, i feel really stupid,
> but i can't find how i get it to work. Yeah i have the book, so i studied
> chapters 10 and 12.
> 
> I just can't find all the needed interface etc needed for the
> PdfPCellEvents. Im working in C#, maybe that got something to do with it.
> 
> Any help would be appreciated.
> 
> Grt,
> Ivar
> 
> 
> 
> 1T3XT info wrote:
>>
>> Ivar Kunst wrote:
>>> Hi,
>>>
>>> Im looking for an option so i can set the Cell.Backgroundcolor of a
>>> pdfptable, to Transperant so i can still see a picture that's behind it.
>>> The
>>> text and the borders should be on top of the image, and still be
>>> viewable.
>>
>> I'd draw the background color in a Cell event (chapter 10)
>> and apply transparency as explained in chapter 12.
>>
>> (The chapter numbers refer to the book "iText in Action".)
> 
> 
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations 
> Conference from O'Reilly Media. Velocity features a full day of 
> expert-led, hands-on workshops and two days of sessions from industry 
> leaders in dedicated Performance & Operations tracks. Use code vel09scf 
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Transperant-Cell-backgroundColor-tp20305663p23444662.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to