No trick but it's only possible if you are placing the image in a
PdfContentByte (or PdfTemplate).

PdfContentByte cb = writer.getDirectContent();
cb.saveState();
cb.rectangle(x, y,  width, height); //clipping rectangle (or any other
shape)
cb.clip();
cb.newPath();
cb.addImage(...);
cb.restoreState();

Best Regards,
Paulo Soares


> -----Original Message-----
> From: Thomas K�bler [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 11:56
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Clipping images
> 
> Hallo,
>  
> i wan't to clip a image. Is there a trick to do this?
>  
> Thank you
>  
> Thomas K�bler


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to