Menu

Precision of drawing

pentavalle
2008-10-19
2012-12-12
  • pentavalle

    pentavalle - 2008-10-19

    I noticed that the precision of circle drawn via Circle2D is significatively less than the precision of a java.awt.geom.Ellipse2D.
    Circle2D appears composite by many lines, not a lot of points.
    Is there any way to increment the drawing precision?
    I am evaluating your library for my open source project but i need to draw a shooting target, made with many circles, and the appearance of the target is important.
    Thanks in advance for your help.

    Andrea

     
    • David

      David - 2009-02-28

      Hi,

      and sory for delay,

      Circle2D and Ellipse2D used polyline approximations to render on screen.

      From version 0.7.0, circles draw using java rendering API, so the precision will be the same (it uses cubic bezier approximation)

      An other possibility is to convert to Polyline, using : Circle2D.getAsPolyline(N), where N is the number of polylines.

      I hope this helps,
      regards,

      DL

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.