Hello all,
I'd like to know how to clip an imported image.
I tried the following code, but nothing happened.
-------------------------------------------------
Image im = Image.getInstance("clipTest.jpg");
cb.addImage(im, im.plainWidth(), 0, 0,
im.plainHeight(), 0, 0);
cb.moveTo(5.0f, 5.0f);
cb.lineTo(5.0f, 105.0f);
cb.lineTo(105.0f, 105.0f);
cb.lineTo(105.0f, 5.0f);
cb.lineTo(5.0f, 5.0f);
cb.closePath();
cb.clip();
-------------------------------------------------
Does anyone know how?
Best regards,
KuMi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/