Sign in to follow this  
ZMaster

GDI+ Curve - Math

Recommended Posts

Hello. Does anyone know how GDI+ evaluates a curve with a call to DrawCurve() mathematicaly? I mean the one, where all the points are parts of the curve actualy and not the bezier one. It looks to me like some x^3 interpolation but I'm not 100 percent sure and I need to be ;-) Any idea? Thanks in advance! ZMaster

Share this post


Link to post
Share on other sites
Have you tried posting to microsoft . public . platformsdk . gdi

Most of the people there are friendly enough and you may just get a ms dev who knows how it was implemented.

Cheers
Chris

Share this post


Link to post
Share on other sites
Thank you for the hint, Chris.
I posted on the Microsoft forums, where I was told that this kind of curve is a 'cardinal b-spline' (see en.wikipedia.org for an explanation), if anyone wants to know that, too.

Share this post


Link to post
Share on other sites
I don't know about those splines, but you might want to look into Catmull rom splines. I've used these myself, and im my experience, they work very well. Google has lots of info on that too

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this