Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor hclemson's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    91
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,746
    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 hclemson's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    91
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,746
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved