Re: [iText-questions] How to clip image

2008-02-28 Thread 熊田貢
Thank you very much Leonard, I could do it. Set the clippath first, THEN draw the image. And be sure to setup a beginState()/endState() pair around your clipping. Leonard > Hello all, > > I'd like to know how to clip an imported image. > I tried the following code, but nothing happened. > ---

Re: [iText-questions] How to clip image

2008-02-28 Thread Leonard Rosenthol
Set the clippath first, THEN draw the image. And be sure to setup a beginState()/endState() pair around your clipping. Leonard On Feb 28, 2008, at 2:34 AM, 熊田貢 wrote: > Hello all, > > I'd like to know how to clip an imported image. > I tried the following code, but nothing happened. > ---

[iText-questions] How to clip image

2008-02-27 Thread 熊田貢
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.moveT