answers solutions wrote:
> Hi
>  
> wht are the  parameters i should pass  to the method
> Image.setTransparency(new int[](     ,           ))
>  
> . inorder to make a image with backgroung to be transparent .
>  
>  i am placing this image against a image which has a white background .

It depends on your image. Let me quote the PDF Reference:

"For color key masking, the value of the Mask entry is an array of
2 x n integers, [ min1 max1 ... minn maxn ], where n is the number
of color components in the image’s color space. Each integer must be
in the range 0 to 2BitsPerComponent - 1, representing color values
before decoding with the Decode array. An image sample is masked
(not painted) if all of its color components before decoding,
c1 ... cn, fall within the specified ranges (that is, if mini <= ci
<= maxi for all 1 <= i <= n)."

I used images with 1 color component, and 256 possible color
values (8 bits). All the background colors in my images are
in the higher ranges (I took the range between 0xF0 and 0xFF);
but it really depends on the images. That's why I asked how
the images you have to use are produced (but you didn't answer
that important question; you expect us to answer, but you are
very unclear yourself).

Your alternative would be to use JAI to preprocess your images
before adding them to iText. But this is not a JAI mailing list.
So you have to look elsewhere if you want to discover that path.

I also told you that I think the design you are trying to
implement has many flaws. People often think I'm saying stuff
like that to insult them, but... well, if a design has flaws,
why can't I say so? Why do you keep on pushing for more answers
when you know that it's very probable that you are on the wrong
track? Most of the developers I know would go to their project
leader and say: "we need to reconsider our design."

A while ago, I've been contacted by a developer just like you.
The developer told me for which company he worked.

Although the developer lived in an Asian country, his employer
was Belgian. So I contacted the Belgian project manager and
I explained the problem. He told me the project was done
the offshore company was going beyond its deadlines and that
caused a lot of stress both in Belgium as well as in India.

This stress could have been avoided if only the communication
had been better. I mean: all I had to do was explain that there
was a flaw in the design. The design was adapted and the problem
was solved in far less time than expected. (Needless to say that
a lot of time was wasted because of the bad communication.)

If you want to help yourself, you should start answering
questions too: are you an offshore developer? what company
are you working for?

Otherwise, you give the impression that you are benefiting
from the delay (for instance if you are paid by the hour).
In that case, we can help you by stop answering your questions
so that it takes longer for you to find a solution.

best regards,
Bruno

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to