??? wrote: > (hmm... I really ought to charge for this stuff ;) Yes, we should start charging for iText...
I made 2 examples that explain different principles. In the first example, I create a mask as done in chapter 5 of the book. I use an image with one component and 2 bits per component as mask. It's rough, but nothing keeps you from using 4 or 8 bpc and augmenting the resolution: http://www.1t3xt.info/examples/browse/?page=example&id=413 In the second example I adapted your solution that would perfectly fit in chapter 11. First the clipped image is added, then cover it's covered with transparent template: http://www.1t3xt.info/examples/browse/?page=example&id=414 -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar