I want to fill a circle with two semi-circles. One on the left side and the other one on the right side. The circle on the left side should be black and the other side should be blue.
How do i achieve this? I tried to fill an ellipse and then draw a rectangle over the half of it. This works for one half of the circle. But with the other halfe i have a problem.
Any ideas how can draw the complete circle?
You can use
Graphics.DrawArcto achieve this.Create a windows forms application and drop this code into the form to test.
Then change the rectangle coordinates to suit your needs.
Other things you might want to look at are,
DrawPie,FillPie. Thinking logically, a pie which has two halves “should” draw two filled semi circles. The example above will just draw an outline of two semi-circles.