Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. Arc/Pie Drawing in WinCE (Algorithm)

Arc/Pie Drawing in WinCE (Algorithm)

Scheduled Pinned Locked Moved Graphics
graphicsalgorithmshelp
2 Posts 1 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    himuskanhere
    wrote on last edited by
    #1

    :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:

    H 1 Reply Last reply
    0
    • H himuskanhere

      :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:

      H Offline
      H Offline
      himuskanhere
      wrote on last edited by
      #2

      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 .

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups