I'm using the .Net Micro Framework 3.0 and i'm having trouble drawing a color-filled ellipse. It seems the DrawEllipse ( Brushbrush , Penpen , intx , inty , intxRadius , intyRadius ) method in Microsoft.SPOT.Presentation.Media.DrawingContext is bugged or i'm doing something wrong. It only draws the outline of the ellipse and doesn't fill it.
I did the following test inside a class that extends UIElement:
The DrawRectangle works perfectly: it draws a red rectangle with a green outline. However DrawEllipse draws only a green outline of the ellipse. I tried to work around it via the Bitmap class. However it's the same problem here: DrawRectangle works fine, DrawEllipse draws only the outline. How can i draw a color-filled ellipse?
Another small question: the method DrawLine ( Penpen , intx0 , inty0 , intx1 , inty1 ) in DrawingContext seems to ignore the thickness of the Pen given to it. It always draws a 1-pixel wide line. Is this normal? This isn't really a big problem, i can draw lines next to each other to work around this, but it's unhandy.