Dear All,
Assume that you have Image (m by n) uploaded. You left-click on mouse
and drag a curve while ur pressing on left button.
How can i retrieve the list of points ( i,j) where the mouse has gone
over.
thanks much in advance.
regards,
chekad
Michael Rauscher - 15 Nov 2006 18:24 GMT
csarami@gmail.com schrieb:
> Dear All,
>
[quoted text clipped - 3 lines]
> How can i retrieve the list of points ( i,j) where the mouse has gone
> over.
Combine a MouseListener with a MouseMotionListener and store the
locations you get by MouseEvents in mouseDragged and mouseClicked.
Bye
Michael
Fred Kleinschmidt - 15 Nov 2006 18:33 GMT
> Dear All,
>
[quoted text clipped - 9 lines]
>
> chekad
Register a MouseListener and a MouseMotionListener.
Note, however, that it is possible that you will not capture
every pixel crossed by the user - it may depend on how fast she
moves the mouse.

Signature
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project