Hi
In the following code snippet the rendered image looks as if no interpolation were applied. Any idea? I set the renderingHints but they seem to be ignored…
`
public static void main(String[] args) throws IOException {
BufferedImage source = ImageIO.read(SimpleScaleDemo.class.getResource("/ch/weblica/core/image/img/empros.jpg"));
BufferedImage dest = new BufferedImage(source.getWidth()/5, source.getHeight()/5, BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = dest.createGraphics();
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
g2.scale(0.2f, 0.2f);
g2.drawImage(source, 0, 0, null);
g2.dispose();
ImageIO.write(dest, "jpg", new File("test.jpg"));
}
`