I'm trying to draw a smooth circle. I'm using CWindowGc::DrawEllipse, but its producing a rather raggedy edge. Is there anyway to apply a smoothing technique? Or use a different method to get the smooth affect?
Thanks,
Helen
Re: DrawEllipse and smooth circles
2009-09-11, 13:25#2
There are no anti-aliased drawing methods. You can either draw into some oversized off-screen buffer, and downsample the result on a per-pixel basis, or you can also try simulating the thing via drawing the ellipse multiple times using different shades and pen size.
Re: DrawEllipse and smooth circles
2009-09-11, 17:39#3
That is a very good idea, the SVG engine produces really nice curves, and in addition it probably adds some transparency to the "smoothed" region, which would be an extra task in case of the 'manual' approach.