LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing smooth circles in labview

Solved!
Go to solution

Hi 

I am using the 'Draw Circle by Radius' VI to draw a pie chart inside a picture box. Its all fine, except that the circle edges are not exactly smooth (see the attached pic). 

I tried looking for it on the net, but couldn't find anything of much use. 

Any ideas on how to make the edges nice and smooth? 

0 Kudos
Message 1 of 4
(3,397 Views)
Hi
The circle is not smooth as no anti-aliasing is done with the picture drawing VIs. To get it to appear smooth you would need to implement an anti-aliasing algorithm in the picture control. This is not something I have ever seen done. You could download MSChart from Microsoft, it is just a free .NET component and code that you can download. Thoric has done a great example here https://decibel.ni.com/content/docs/DOC-9946 that you could start with to draw the pie chart for you.

Mike
Message 2 of 4
(3,379 Views)
Solution
Accepted by pranjall
Hi
The circle is not smooth as no anti-aliasing is done with the picture drawing VIs. To get it to appear smooth you would need to implement an anti-aliasing algorithm in the picture control. This is not something I have ever seen done. You could download MSChart from Microsoft, it is just a free .NET component and code that you can download. Thoric has done a great example here https://decibel.ni.com/content/docs/DOC-9946 that you could start with to draw the pie chart for you.

Mike
0 Kudos
Message 3 of 4
(3,378 Views)

Ohhk....this is strange, sad and unfortunate that a platform like LabVIEW doesn't have something as obvious as this. 

0 Kudos
Message 4 of 4
(3,303 Views)