A
A
Anton Gribov2015-04-14 16:53:40
WPF
Anton Gribov, 2015-04-14 16:53:40

How to turn a hand-drawn line into a beautiful graph?

For my diploma, I want to make a component (if it doesn’t work out, then figs with it :), which, when drawing a line (I use WPF InkCanvas), would turn this line into a graph. Well, that is straightened harder. Not strong in math so don't know what I need to use for this. There is a set of points as input. What can be applied?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sumor, 2015-04-14
@hinduCoder

Splines, such as cubic, Bezier curves A
lecture on interpolation
Different types of interpolation work a little differently, so it's best to look at several options and choose the one that suits.
Some of the math is already built into the rendering methods, for example, there are methods for creating Bezier curves.
You can start digging examples from here: A practical guide. Creating a Bezier Curve...

V
Vladimir Martyanov, 2015-04-14
@vilgeforce

Look at Bezier curves.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question