As you know Graphics.DrawBeziers can be used to draw cubic Bezier curve (i.e. with two control points). However I need to draw a quadratic Bezier curve (single control point), is there a built in method for this in .NET framework?
However, incase for some reason that link doesn't work heres the relevant bit.
"quadratic bezier of the form [P1, C, P2] (where C is the control point) you can form an equivalent cubic bezier with [P1, (C*2/3 + P1 * 1/3), (C*2/3 + P2 * 1/3), P2]. "
vytautas.ziu...
Contributor
3854 Points
691 Posts
How to draw quadratic bezier curve in GDI?
Mar 30, 2012 09:29 AM|LINK
Hi,
As you know Graphics.DrawBeziers can be used to draw cubic Bezier curve (i.e. with two control points). However I need to draw a quadratic Bezier curve (single control point), is there a built in method for this in .NET framework?
Thanks in advance.
sappy00
Member
22 Points
3 Posts
Re: How to draw quadratic bezier curve in GDI?
Apr 17, 2012 09:39 PM|LINK
I came across your question looking for the answer myself... I found it on this page:
http://intepid.com/?m=200303&paged=2
However, incase for some reason that link doesn't work heres the relevant bit.
"quadratic bezier of the form [P1, C, P2] (where C is the control point) you can form an equivalent cubic bezier with [P1, (C*2/3 + P1 * 1/3), (C*2/3 + P2 * 1/3), P2]. "