Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Get Image color and set Image transparent color.

Sloey, James

2005-05-24


Thanks to all for the recent help.
I have one last question regarding images.
The PDF template I've been given has a colored background image.
Scanned gifs of signatures on a white background are overlaid onto the PDF template.
The index number of white in the signature.gif color map changes from image to image.
How can I find out the color index of white so I can set white transparent?

image = Image.getInstance("/signature.gif");

image.setTransparency(/* What Goes Here? */);

I've asked a lot of questions recently and you've all offered excellent solutions.

Thanks for all your help.

 
Jim Sloey
©2008 junlu.com - Jax Systems, LLC, U.S.A.