Draw image with antialiasing?
I draw an image pixel by pixel via
g.drawLine(x, y, x, y);
but antialiasing via
g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);//smoothed zoom
doesn't work?
# 5
Imagine instead of drawing pixels, you are drawing 10x10 squares. When the square is drawn, the edges are already flat. So there is nothing to antialias. antialiasing applies to lines and the edges of a shape. If you want the edges to appear more smooth, then you'll have to build that into your fractal algorithm when you determine the color. The other option might be to pass a blur over the image to soften it.