Hi,
I am having problem with PdfGraphics2D. The problems cames when I draw a Image
with transparency. The graphics do not paint the image with the transparency of
the original one. I use the method
drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver)
But in the pdf file the image has no transparency. Is there any problem with
this kind of images (tiff with transparency)?
I have created the graphics like this:
PdfWriter writer = PdfWriter.getInstance(documento, fos_Stream);
writer.setEncryption(PdfWriter.STRENGTH128BITS, null,
null, PdfWriter.AllowPrinting);
writer.open();
documento.open();
PdfContentByte cb = writer.getDirectContent();
Graphics2D g2d=
(Graphics2D)cb.createGraphicsShapes((float)ancho_Pagina,(float)alto_Pagina);
g2d.drawImage(img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,observer);
Thanks a lot!!
-------------------------------------------------------------------------
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/