Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / November 2004

Tip: Looking for answers? Try searching our database.

Help on the cardinal spline

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CristianMori - 25 Nov 2004 13:23 GMT
Hi everyone
I need to know the formula used in .net for the cardinal spline since i need
to generate an array of values of the curve after drawing it.

Thanks
Bob Powell [MVP] - 25 Nov 2004 13:38 GMT
You don't need the formula..

Just draw your spline into a GraphicsPath. Flatten the Path using the
Flatten method and then extract the points from the GraphicsPath object
directly.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> Hi everyone
> I need to know the formula used in .net for the cardinal spline since i need
> to generate an array of values of the curve after drawing it.
>
> Thanks
Lazarus Lang - 26 Nov 2004 13:14 GMT
> You don't need the formula..
>
> Just draw your spline into a GraphicsPath. Flatten the Path using the
> Flatten method and then extract the points from the GraphicsPath object
> directly.

That's right but if for some other reason you (the OP, that is) DO need the
formulae, I can only advise to buy Charles Petzold's excellent book called
"Windows Programming with C#" (or the newer VB.NET variant) which
contains an entire section on this exact subject. Heck, you can
probably download the source code on his web site (Google !).

eltwo

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.