The solution:

PdfTemplate template = cb.createTemplate(largura, altura);
imagem.setAbsolutePosition(colunaAux, linhaAux);
template.rectangle(new Rectangle(largura, altura));
template.clip();
template.newPath();
template.addImage(imagem);
cb.addTemplate(template, coluna, linha);

Congratulations

From: rafael.falc...@hotmail.com
To: itext-questions@lists.sourceforge.net
Date: Tue, 10 Mar 2009 16:51:31 +0000
Subject: [iText-questions] Cut a picture to show only part of the image









    
Hi
I need to cut a picture to show only part of the image. The method 
"setImageMask" Class "com.lowagie.text.Image" is complicated to use because it 
requires a hard mask image to be created. I need to include that image in an 
absolute position. How best to solve this problem?

Thanks

Rafael

Diversão em dobro:  compartilhe fotos enquanto conversa usando o Windows Live 
Messenger.
_________________________________________________________________
Confira vídeos com notícias do NY Times, gols direto do Lance, videocassetadas 
e muito mais no MSN Video!
http://video.msn.com/?mkt=pt-br
------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to