This week's book giveaway is in the Design and Architecture forum. We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line! See this thread for details.
I am zooming in and out of an image using ImageIcon images2 = new ImageIcon(images[imageCount].getImage().getScaledInstance(width, height, Image.SCALE_SMOOTH)); Everything is working except after zooming in and out a couple of times the image starts getting distorated. Almost to the point that I can't even recognize the image. Any ideas, Craig
Are you scaling from your new image each time? You lose a little information each time you scale, so after a few iterations, that would cause visible distortion. The fix, if that's the problem, would be to scale from the original image each time, keeping track of the cumulative scaling factor. Warren