graphics and ints
I'm trying to build a scalable image. When I interactively enlarge my icon, some discrete 'jumps' happen.
e.g when the line width is 3.4 or 3.5. In the first case I have to give a 3 and in the last case a 4 to the graphics object. So when I enlarge my icon, suddonly the line width becomes 25 percent thicker. Is there a way to smoothen this?
The same thing happens with the shapes. This is even a much bigger problem. However the cause is the same: integers. Even when I use shapes (and doubles) instead of drawRectangle or drawPolygon... in Graphics2D, the icons remains to have sudden 'jumps' as I scale them.
It is essential that the computing time is as low as possible.
Does anyone has some ideas?
Message was edited by: andries_demont