Calculate Bezier control points

  • Thread starter Thread starter Dennis Myrén
  • Start date Start date
D

Dennis Myrén

Hi.

Sorry if this post might be a little off the topic,
but just in case anyone knows...

Given a size, a position, a start angle and a sweep angle,
i want to draw a bezier curve.

I will need to compute the bezier control points
(start point, point A, point B, point C).
I have had some problems with that.

Does anyone know how to achieve this?

Thank you.

Regards,
Dennis
 
Hi,
Check out Graphics.DrawBezier(s). Also
Graphics.DrawCurve/DrawClosedCurve. There's a wealth of
goodies in the Graphics namespace you might also be
interested in.

HTH,

mk
 
Dennis,
In addition to mk's comments.

Charles Petzold's book "Programming Microsoft Windows with Microsoft Visual
Basic .NET" has a chapter on Bezier Curves where he covers the math of
bezier's.

I have not worked through all his formulas, but I believe he lists the
formulas you would need to calculate the points. Either directly or
indirectly.

Hope this helps
Jay
 
Back
Top