Q:

sharp corner for circle(draw on canvas) in android

i am drawing  chart using canvas.
Bitmap image;
image=  //here i get bitmap which i want to draw on canvas
Canvas canvas=new Canvas(image);
// i have draw circle as follow
canvas.drawCircle(cx, cy, radius, paint);
but circle corner is not sharp:
ii is showing something like this:

how to i make circle outer radius sharp..
Thanks in advance..

A:

When you initialise your paint, set these properties:
paint.setAntiAlias(true);
paint.setDither(true);
paint.setFilterBitmap(true);

See the Android documentation for what each one does;
http://developer.android.com/reference/android/graphics/Paint.html

