Uneven circle using onDraw



  • введите сюда описание изображения

    On the left of the drawing, this circle was used on Draw and painted in Canvas through drawCircle.

    And to the right, the circle that created through drawable circle.xml.

    Can the circle on the left be the same as the right?

    If I can drop the code



  • Here, add a flag to paint that draws:

     Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
    

    Or so:

      paint.setAntiAlias(true);
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2