tags:

views:

28

answers:

1

hi

when I scale my shape [Rectangle] with g2d.scale(2,2) or with AffineTransform , I can't detect correct hit on shape because my shape scale still same as previous and only view of shape is change.

I need solution for solving this problem [change size of shape after Transform].

thanks

+1  A: 

You can either use an inverse transform, as shown here, or do the scaling explicitly, as shown here.

trashgod