Java Graphics2D floating point accurate drawOval alternative?
问题 So I am trying to draw an arc and put a circle around its round endpoint, but I am having issues due to rounding to the nearest pixel. This is visible in some but not all cases. Is there a way to draw circles using floating points and anti-aliasing to eliminate this rounding error? You can run this code to see the problem. I have drawn arcs of 0 length (appearing as large dots) instead of full arcs for clarity. import java.awt.*; import javax.swing.*; public class Example extends JFrame {