The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 The Perils of Image.getScaledInstance()
Subject:  Fix for poor quality
Date:  2007-05-01 15:26:38
From:  shmert


I was experiencing poor quality with this technique also. The following seems to fix it, resulting in smoother resizing (also probably slower)

graphics.setRenderingHint(
RenderingHints.KEY_RENDERING,
RenderingHints.VALUE_RENDER_QUALITY);

Without this thumbnails were pixelated and generally kind of crappy.

Again, a very helpful article.

 Feed java.net RSS Feeds