You must place the images at absolute positions otherwise how would you know where to place the overlay?
Paulo ----- Original Message ----- From: "Sverre Moe" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" <[email protected]> Sent: Tuesday, March 20, 2007 2:09 PM Subject: Re: [iText-questions] Overlay a transparent gif on another image >I dont understand exactly. I am not drawing a image, it already exist and >is > retrieved and displayed with the following code. > Image image = Image.getInstance(new URL(url)); > image.scaleToFit(PageSize.A4.width(), PageSize.A4.height()); > image.setAlignment(Image.MIDDLE | Image.TEXTWRAP); > document.add(image); > > In addition to this image I have a transparent gif which I want to overlay > on this. Or perhaps draw shapes directly onto it. > > 2007/3/20, Paulo Soares <[EMAIL PROTECTED]>: >> >> >> ----- Original Message ----- >> From: "Sverre Moe" <[EMAIL PROTECTED]> >> To: <[email protected]> >> Sent: Tuesday, March 20, 2007 11:15 AM >> Subject: [iText-questions] Overlay a transparent gif on another image >> >> > How can this be achieved with iText or if it is possible? Maybe I could >> > just >> > read the image in memory and paint on it using Graphics2D, but this >> seems >> > like unnecessary extra work. >> >> Don't use Graphics2D. Draw the first image and then the GIF on top of it, >> the transparent parts will show, it's that simple. >> >> Paulo >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> 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/ >> > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------------------------------------------------------------------------- > _______________________________________________ > 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/ > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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/
