You could do a paint automation.
But it could be all VFP. You could lay a transparent shape over the image. Use the x/y location features of mouse moves and clicks and set your points that way. There is a little program in download#
15161 that places a transparent shape over an a text preview "pane" and uses the transparent shape's mouse position to process some visual activities.
But better yet is this article and code from Calvin Hsia. It's detailed and technical but may be helpful:
http://blogs.msdn.com/calvin_hsia/archive/2005/07.aspxCraig Boyd (I hope thats right) and his outfit, SweetPotato Software have done some phenomenal graphics interfaces with VFP - but I cannot find the link I had to a screen shot of one of their project/products. Ot is an amazing VFP solution. It has rulers (uses VFP 9 rotate features) and zoom too!
>Hi all,
>
>I need to append to an application some kind of line-drawing editor.
>What I'm trying to do is to load a bitmap on a form, then set some points over that image and draw lines from points to points to get the angles between the lines.
>I'd like also to move the points (drag & drop) to correct some angles.
>
>Any ideas of what to do?... use any active X? ... vfp code?
>Anyone did something like this?
>
>Thank you
>Fabian
Imagination is more important than knowledge