g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
g.drawImage(document.getRenderer(), 0, 0, size.width, size.height, ic);
</BUG>
g2d.setRenderingHints(oldHints);
}
<BUG>private void paintGrid(Graphics g, ImageComponent ic) {
</BUG>
Dimension size = ic.getCanvasSize();
BufferedImage image = ic.getDocument().getValue();
int imageWidth = image.getWidth();

g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
} else {
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
}
g.drawImage(renderer, 0, 0, size.width, size.height, ic);
g2d.setRenderingHints(oldHints);
}
private static void paintGrid(Graphics g, ImageComponent ic) {
Dimension size = ic.getCanvasSize();
BufferedImage image = ic.getDocument().getValue();
int imageWidth = image.getWidth();
