I created bezier curve in C#. I compute result points of curve in some interval and I connect these points with a lines (g.drawLine). When I want curve which is 1px fat, all is right. But when I want thick this curve, occours problem. This problem is that connections individual lines is not pretty. Situation is ilustrate on zoom picture:
http://ryska.webzdarma.cz/bezier.png
Some tips how solve this problem? Thanks
您可以尝试从多个LineSegment
对象中创建曲线,并指定IsSmoothJoin = true;
Going by the mention of g.drawLine
I would say this is WinForms
. In that case, all you need to do is call
instead of DrawLine
. This will draw all the segments as one connected line.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.