i need to draw the following image
The Gray part is what i want to draw over another image what is the Code i need to use using CGContext methods, i tried using the CGContextAddArc but failed because when i fill the stroke the center hollow is also filled with the grey texture.
Any help appreciated.
Info : I have the Complete Blue Image , i need to add the Semi Circle above the blue image
Thanks
Working further on what Ole Begemann referred in his answer and some modification, I was able to achieve the requirement.
So instead of 2 arcs I used only one and stroked it with higher width.
Have a look at Filling a Path in the Core Graphics documentation. Basically, what you do is add two arcs to your path (the outer and the inner one) and then use Core Graphics fill rules to your advantage. The code would look something like this:
This is tangential but kind of relevant. Here's my Swift drawing code for a donut (or hollow circle).