×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Apr 2005
    Location
    England
    Posts
    91

    Question DrawEllipse and smooth circles

    Hi,

    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

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: DrawEllipse and smooth circles

    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.

  3. #3
    Regular Contributor
    Join Date
    Apr 2005
    Location
    England
    Posts
    91

    Wink Re: DrawEllipse and smooth circles

    Thanks for the reply. I've "cheated" by creating a nice svg circular graphic and blit that instead, as it has a much better finish.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: DrawEllipse and smooth circles

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •