iphone - Fill a circle with an outline -


i need draw filled circle, , needs have outline different colour. right i'm doing creating 2 circles, , filling 1 stroking other.

cgcontextfillellipseinrect(context, cgrectmake(10, 10, 80, 80)); cgcontextstrokeellipseinrect(context, cgrectmake(10, 10, 80, 80)); 

the problem circle looks little offset , uneven. there function allows simultaneous drawing of circle outline in single line?

try adding thickness outline stroking larger pen line width. may need inset rectangle of half width of pen.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -