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. WPF
  4. How can I draw part of a circle in WPF?

How can I draw part of a circle in WPF?

Scheduled Pinned Locked Moved WPF
questioncsharpwpf
3 Posts 2 Posters 10 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.
  • R Offline
    R Offline
    Rob Philpott
    wrote on last edited by
    #1

    Hi all, I want to draw part of a circle and am having difficultly being new to this WPF lark. I can draw a complete circle using an ellipse with equal width and height easily enough. But what I want to do is given a position, a radius and a start angle and a stop angle draw part of the circle. Have it start at 9 o'clock for instace and sweep clockwise to 5 o'clock. I can sort of do this using an arc, but this seems to be based on a start position and an end position and I'd have to resort to trigonometry in code to work these out. Any ideas?

    L 1 Reply Last reply
    0
    • R Rob Philpott

      Hi all, I want to draw part of a circle and am having difficultly being new to this WPF lark. I can draw a complete circle using an ellipse with equal width and height easily enough. But what I want to do is given a position, a radius and a start angle and a stop angle draw part of the circle. Have it start at 9 o'clock for instace and sweep clockwise to 5 o'clock. I can sort of do this using an arc, but this seems to be based on a start position and an end position and I'd have to resort to trigonometry in code to work these out. Any ideas?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I found this post on Google. It has many examples of what you are looking for. http://silverlight.net/forums/t/5132.aspx[ href="http://silverlight.net/forums/t/5132.aspx" target="_blank" title="New Window">^]

      Cheers, Karl » CodeProject 2008 MVP My Blog | Mole's Home Page | How To Create Screen Capture Videos For Your Articles

      Just a grain of sand on the worlds beaches.

      R 1 Reply Last reply
      0
      • L Lost User

        I found this post on Google. It has many examples of what you are looking for. http://silverlight.net/forums/t/5132.aspx[ href="http://silverlight.net/forums/t/5132.aspx" target="_blank" title="New Window">^]

        Cheers, Karl » CodeProject 2008 MVP My Blog | Mole's Home Page | How To Create Screen Capture Videos For Your Articles

        Just a grain of sand on the worlds beaches.

        R Offline
        R Offline
        Rob Philpott
        wrote on last edited by
        #3

        Thanks for this Karl, I'll take a look.

        Regards, Rob Philpott.

        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