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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How do I increase the resolution of DrawPie [modified]

How do I increase the resolution of DrawPie [modified]

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 2 Posters 0 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.
  • G Offline
    G Offline
    GuyThiebaut
    wrote on last edited by
    #1

    My application draws a pie chart using DrawPie. Here is a sample:g1.DrawPie(Pen:=myPen, rect:=New Rectangle _ (x:=x + XAdjust, y:=y + yAdjust, Width:=Width, Height:=Height), _ startAngle:=startPos, sweepAngle:=sweep)
    I am finding that the resolution is fairly low. Is there any other method or object I can use to get a really crisp smooth diagonal line on the pie chart? Regards Guy Thiebaut Cambridge UK -- modified at 7:04 Friday 22nd June, 2007

    You always pass failure on the way to success.

    S 1 Reply Last reply
    0
    • G GuyThiebaut

      My application draws a pie chart using DrawPie. Here is a sample:g1.DrawPie(Pen:=myPen, rect:=New Rectangle _ (x:=x + XAdjust, y:=y + yAdjust, Width:=Width, Height:=Height), _ startAngle:=startPos, sweepAngle:=sweep)
      I am finding that the resolution is fairly low. Is there any other method or object I can use to get a really crisp smooth diagonal line on the pie chart? Regards Guy Thiebaut Cambridge UK -- modified at 7:04 Friday 22nd June, 2007

      You always pass failure on the way to success.

      S Offline
      S Offline
      saurabh4u22
      wrote on last edited by
      #2

      do work hard i am sure ane day u will get solution

      MARA !DEA

      G 2 Replies Last reply
      0
      • S saurabh4u22

        do work hard i am sure ane day u will get solution

        MARA !DEA

        G Offline
        G Offline
        GuyThiebaut
        wrote on last edited by
        #3

        oh - ok thanks.

        You always pass failure on the way to success.

        1 Reply Last reply
        0
        • S saurabh4u22

          do work hard i am sure ane day u will get solution

          MARA !DEA

          G Offline
          G Offline
          GuyThiebaut
          wrote on last edited by
          #4

          Solved it to some extent... Using the built in anti-aliasing. It's not perfect but it is good enough for the moment. So here is the code:

          Public b1 As Bitmap
          Public g1 As Graphics
          
          b1 = New Bitmap(Width, Height, Panel1.CreateGraphics())
          g1 = Graphics.FromImage(b1)
          g1.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias
          

          -- modified at 10:08 Friday 22nd June, 2007

          You always pass failure, and a few fools, on the way to success.

          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