I re-read the thread and I find it strange that the problem is no
transparency. Usually the problem is too much transparency or in the wrong
places. Can you send me the GIF privately (if it's not too big)?

Best Regards,
Paulo Soares

----- Original Message -----
From: "Alan Smoke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 30, 2003 19:44
Subject: [iText-questions] Transparent Gif, PDFGraphics2D again


>
> Hi again,
>    I recently submitted the message below and received the listed reply.
> My
> question now is: What transparency cases are implemented by iText, and
> how
> do I create images that use them?  Also, is there any way I can
> implement
> transparency cases myself, and where could I find some information on
> that?
> Thanks in advance for your help, and may I say iText is an impressive
> piece
> of programming.
>
> Alan Smoke
>
>
> From: "Paulo Soares" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Re: [iText-questions] Transparent Gif, PDFGraphics2D
> Date: Thu, 28 Aug 2003 16:19:11 +0100
>
> It's not a bug. Not all the transparency cases are implemented for
> java.awt.Image.
>
> Best Regards,
> Paulo Soares
>
> ----- Original Message -----
> From: "Alan Smoke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 27, 2003 22:04
> Subject: [iText-questions] Transparent Gif, PDFGraphics2D
>
>
> >
> >Hello,
> >    I am having a probject with a transparent GIF.  When I run the code
> >listed below the image is displayed on the PDf with a gray background
> >instead of a transparent background.
> >
> >public static void main(String[] args) throws Exception {
> >
> >    Document document = new Document();
> >
> >    PdfWriter writer = PdfWriter.getInstance(document, new
> >FileOutputStream("C:\\Test\\itext.pdf"));
> >
> >    document.open();
> >
> >    PdfContentByte cb = writer.getDirectContent();
> >    cb.saveState();
> >    cb.concatCTM(1, 0, 0, 1, 50, 400);
> >
> >    Graphics2D ig = cb.createGraphics(500, 500);
> >
> >    Image image = Toolkit.getDefaultToolkit().getImage("<<transparent
> >image>>");
> >
> >    ig.drawImage(image, 50,50, null);
> >
> >    ig.dispose();
> >    cb.restoreState();
> >
> >
> >    document.close();
> >
> >}
> >
> >
> >When I place the image in a JLabel using an ImageIcon, the image is
> >transparent when displayed in a JFrame or printed.  However, when I
> call
> >the
> >paint() method of the JLabel with the PDFGraphics2D, the image still
> has
> >a
> >gray background.  Is this a bug, or am I doing something wrong?  Please
> >let
> >me know what I can do.
> >
> >Thank You,
> >Alan Smoke
>
> _________________________________________________________________
> Get MSN 8 and enjoy automatic e-mail virus protection.
> http://join.msn.com/?page=features/virus
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to