I have a program that computes the distance between two elevations at a given point. I need to plot these lines to a picture. I'm having problems getting the lines to start in the correct spot. Here's the code I'm using:
Dim Gr As Graphics = PictureBox1.CreateGraphics() Dim skyBluePen As New Pen(Brushes.DeepSkyBlue) Gr.DrawLine(skyBluePen, 2, 1759, 103, 1768)
2 and 103 is the starting and ending distance (x1 and x2)
the 1700 values are y1 and y2.
I can't figure out a way to modify the given values to make sure they show up correctly on the picture box.