I want to draw smooth circles but when I use RenderingHints class I lost very much performance.
Is there any possible solution especially for the Windows platform!
Best Regards,
Is there any possible solution especially for the Windows platform!
Best Regards,
Code:
Graphics2D g2D=(Graphics2D)gbuffer;
RenderingHints hints =
new RenderingHints( RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
RenderingHints hintsNew = new RenderingHints
(RenderingHints.KEY_RENDERING,
RenderingHints.VALUE_RENDER_QUALITY);
[COLOR=red]
//VALUE_RENDER_QUALITY
//what is job of this object???
[/color]
hints.add(hintsNew);
g2D.setRenderingHints(hints);
g2D.setColor(Color.black);
g2D.drawOval(
po.xMap(x-r), po.yMap(y+r),
po.xScale(2.0*r), po.yScale(2.0*r));
g2D.setColor(Color.black);