I am using CGrect to draw circle with border but i didn't get sharp border of circle here is my code:
CGRect rect = CGRectMake(lastPoint1.x - CircleRadius ,lastPoint1.y - CircleRadius,CircleDia,CircleDia);
CGContextSetFillColorWithColor(ctx, [Util_color getThemeColor].CGColor);
CGContextFillEllipseInRect(ctx, rect);
CGContextSetRGBStrokeColor(ctx, 255.0, 255.0, 255.0, 1.0);
CGContextStrokeEllipseInRect(ctx, rect);
CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound);
CGContextSetLineWidth(ctx, 3.0);
CGContextSetShouldAntialias(ctx, YES);
CGContextSetLineCap(cox,kCGLineCapRound);
but i still get blur border ! Is there any way to get sharp border using CGrect?