c# - Trying to Draw a function -


i'm trying draw graph in c#, enter image description here

so far i've been able draw simple lines using drawline, limitative of own, because, not i'm forced provide start , end points, i'm limited straight lines.

and can see

enter image description here

i have curve @ last trech of expression (a inverted parabola)

any hints on how perform in bmp drawing?

i've been drawing using following

   using (graphics g = graphics.fromimage(bmp))            { //g.drawline , others } 

you can use similar function graphics class drawcurve. takes array of points parameter , draw through them. depending on how accurate want curve, can start point, end point , turning point.

https://msdn.microsoft.com/en-us/library/7ak09y3z%28v=vs.110%29.aspx?f=255&mspperror=-2147217396


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -