Good points to write this drawing routine for me :)
Posted on 2005-05-02
I have simple drawing code that does MoveTo() followed by LineTo() to draw a single line from point A to point B. it can be horizontal, vertical or any angle in between.
each line has a numerical value corresponding to a distance, associated with it.
I need code that will draw this value, just assume it's always "1.00" - I'll plug in the variable later, but here's the thing - the string must be drawn parallel to the line, centered between the two end points, and just a couple pixels above it. Make sense I hope?