Hi,
Below is the code which is used for drawing a graph in the winforms using C++
Kindly let us know the correct conversion for drawing the same graph using C# in a picturebox
pDC->MoveTo(x,y+int(height*10/11));
pDC->LineTo(x+int(wid),y+int(height*10/11));
Loading
VulpesPosted Apr 29, 2013, 7:12 AM
Points with negative co-ordinates will therefore be outside the picturebox.
You'll need to translate your co-ordinates so that they all fall within the positive xy quadrant in order to draw them within the picturebox.
EnsoiPosted Apr 29, 2013, 2:45 AM
The idea worked out for positive values of x&y.
We have one more clarification i.e., if y is -ve the line is not getting plotted inside the picturebox.
Kindly let us know how to set the -ve value in picture box
VulpesPosted Apr 22, 2013, 6:09 AM