Device Application
-
I want to draw arc in a deviceApplication project (Pocket pc 2003) but there is no DrawArc method!!! any ideas.
-
I want to draw arc in a deviceApplication project (Pocket pc 2003) but there is no DrawArc method!!! any ideas.
Drawing Arcs is pretty much a "no go" in the Compact Framework using GDI+. You can accomplish Arc's using GDI directly or you can look at XRossOne (on the Microsoft site) or GAPI (also on Microsoft). Both are basically wrappers around GDI. You can also look at DirectX on Mobile. GapiDraw is another option (commercial product - never used it...). This of course adds dependencies to your application. Another option is to use DrawEllipse and then 'Erase' those areas you dont want to display by repainting the background. This is a bit of a hack though. I eventually decided that I would Chamfer the corners of my images and the results are reasonable but admittedly they are not arcs. If you find a decent solution please respond at let me know. Regards, David -- modified at 13:23 Wednesday 28th February, 2007