Hello,
I have been looking the source of PDFGraphics2D and I found that the method:
private boolean drawImage(Image img, Image mask, AffineTransform xform, Color
bgColor, ImageObserver obs)
Aplies a mask in the image if this mask is not null. But when this mask is
applied, the transparency of the original image is not applied, and if I comment
the lines
if (mask!=null) {
com.lowagie.text.Image msk =
com.lowagie.text.Image.getInstance(mask, null, true);
msk.makeMask();
msk.setInvertMask(true);
image.setImageMask(msk);
}
The transparency apears in the generated pdf. what is the reason for this? Are
there any solution to solve my problem?
Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/