Rounded Edges on UIBezierPath

i'm currently working on a Plot Method to plot simple coords on a UIView.

I got my values in an array.

 foreach (int y in samples)
            {
                x += 10;
                path.AddLineTo(new PointF(x, baseline - y));
                pathDown.AddLineTo(new PointF(x, baseline + y));
            }

after that i set

path.ClosePath();
            pathDown.ClosePath();
            path.LineCapStyle = CGLineCap.Round;
            path.LineJoinStyle = CGLineJoin.Round;
            pathDown.LineCapStyle = CGLineCap.Round;
            pathDown.LineJoinStyle = CGLineJoin.Round;
            pathDown.Fill();
            path.Fill();

but the corners aren't rounded. What can i do?

Thank you.

Answers


There's already a method that should cover this for you: UIBezierPath.FromRoundedRect


Need Your Help

How to generate valid folder names with encryption

c# encryption cryptography

In Windows there are certain characters that are not allowed as folder names. I am trying to implement a simple program that can encrypt and rename folders. I believe I can use the old traditional ...

IndexableGraphHelper in Titan?

java titan

I am wondering if there is an implementation of Blueprint's IndexableGraphHelper or equivalent work-around in Titan. During ETL, I want to ensure that I do not create duplicate vertices and my edge...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.