Get an image with transparency, such as PNG, and set the position with 
Image.setAbsolutePosition(). To actually place it use Document.add() or 
PdfContentByte.addImage(). You can layer images on top of images. This is 
all explained in the book and in the tutorial.

Paulo

----- Original Message ----- 
From: "Ash Grove" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, August 04, 2007 2:48 PM
Subject: Re: [iText-questions] overlaying images


> Thanks for your reply.
>
> Then assuming the images are a suitable format, how
> would you approach this? Your reply, Paolo, suggests
> that using transparency is the way to go. Yes?
>
> To reiterate, I need to achieve the effect of layering
> images.
>
> Thanks again,
> Ash
>
>
>>Re: [iText-questions] overlaying images
>>Paulo Soares
>>Sat, 04 Aug 2007 01:52:07 -0700
>
>>Jpeg is not suited to apply transparency, it's a
> continous color >encoding
>>and what you perceive as white can have many shades.
>
>>Paulo
>
> ----- Original Message ----- 
> From: "Ash Grove" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Saturday, August 04, 2007 2:17 AM
> Subject: [iText-questions] overlaying images
>
>
>> Hello,
>>
>> I need to lay one jpg over another jpg. The image on
>> top must be in a specific location. I've checked out
>> masking and transparency -- what would be the best
>> strategy?
>>
>> Thanks,
>>
>> Ash


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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