c# - Trying to Draw a function -
i'm trying draw graph in c#, 
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

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
Post a Comment