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.
> ---
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.
> ---
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