Shen Hailong wrote:
> [Problems with strokes and fill not aligning]
>Actually, I want make this shape as my cursor, in this case, should I use a
image file instead of it?
As I said in my email, that's one option, though another one is to apply a
translation to the shape before filling it. If you say
big.translate(0.5f, 0.5f);
before filling the shape, and then reverse it:
big.translate(-0.5f, -0.5f);
before stroking it, you can get the border and fill to line up in a more
'intuitive' fashion. (Or should could save the current transformation before
the first translate() and restore before the draw() instead of doing another
translate(). I'm not sure which is preferable.)
Cheers,
Pete
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/