Arc/Pie Drawing in WinCE (Algorithm)
-
:zzz:Hey friends.. CDC::Arc/CDC::Pie are not supported in Windows CE.. I have tried to draw Arc using simple for loop and x = cos(Angle) * radius... and then CDC::SetPixel used to Glow it... but there is Aliasing problem... Is there any efficient Algorith to Draw Arc/Pie Thanks in advance...::cool:
-
:zzz:Hey friends.. CDC::Arc/CDC::Pie are not supported in Windows CE.. I have tried to draw Arc using simple for loop and x = cos(Angle) * radius... and then CDC::SetPixel used to Glow it... but there is Aliasing problem... Is there any efficient Algorith to Draw Arc/Pie Thanks in advance...::cool:
Hi! I having a bit of trouble with drawing an arc and I hope somebody here could give me a hint. What I want is to draw an arc given the following parameters: a bounding box (x1,y1,x2,y2) and a start- and end-angle. The center point of the arc is the same as the center point of the bounding box, and the start- and end-angle determines how long the arc should be. In example, a square bounding box and a start-angle of 0 and end- angle of 360 will give a perfect circle (the inscribed circle of the bounding box), while a "squashed" box and angles of 110 - 200 will give a quarter of an equally squashed circle (starting at 110 degrees). Moreover, I would like to draw filled arcs (like a pie slice) as well. Can anybody give me a hint or an algorithm to look at? I've looked at the normal Bresenham circle algo and think it should be possible to adapt this, but I've been unsuccessfull so far. WinCE Does not support MFC's ARC/Pie .