Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Does anyone know how to use the mouse to draw free hand lines over a displayed image? The image is displayed in a window created with the WIDGET_DRAW function. When I click the mouse over the image, I am able to store the coordinates of mouse movement unit I click the mouse a second time. I am able to display the line using the PLOT command, however, the scaling of the plot area is different from the image area. For example, I am unable to draw in the upper right portion of the image because the drawing area is slightly smaller than the image area. This draws a line, but not at the current position of the mouse. If anyone knows how to correct this problem, or knows of a better solution, I would greatly appreciate the information. Thanks, Steve Hartmann