http://www.moshplant.com/direct-or/bezier/ will give you the math, given the
four points. To draw the curve in real time, start at the point with the
smallest x coordinate, and calculate y for each pixel, as you increment the
x coordinate by one. Stop when you reach the point with the largest x
coordinate.
A Google search on "Bezier curve" will give you many useful links.
"Peter Morris" <su*****@NOdroopySPAMeyes.comwrote in message
news:uK**************@TK2MSFTNGP03.phx.gbl...
Hi all
I want to draw a line as if it were being drawn in real-time by a person.
To save lots of data I think that storing 4 points in memory and drawing a
bezier curve would be efficient. What I need to know is, how can I
determine each of the required pixel positions so that I may loop through
them and draw them onto a canvas over a timespan of (for example) 1
second?
Thankyou!
Pete