Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iam missing some coords while using mouse dragged event.

 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i have an application in which i have to draw lines on canvas using mouse and replay what ever i have drawn on click of a button out side the applet.
while drawing lines using mouse at mousedraged event iam tracking the coordinates.but when i draw the lines fast iam missing the coordinates.so as iam missing the cordinates while replaying what ever i draw iam not getting a uniform replay line.
how is it possible to track the coordinates with out missing any coordinates while using mouse dragged event.
can any one help please,
its very urgent..
Thanks in advance,
ravi
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just don't get all the points the mouse went across. You will have to come up with a workaround.
What are you doing exactly?
 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Bailey:
You just don't get all the points the mouse went across. You will have to come up with a workaround.
What are you doing exactly?

dear Mr paul,
Actually we r trying to develop an application where in u can draw anything with mouse on an applet canvas(Just as Paint brush).we kept 2 buttons outside the applet,which can be use to erase the drawings,clear last stroke and replay what ever u have draw.
iam trapping the coordinates when drawing with mouse in Mouse dragged event.when i draw slowly iam able to trap all thepoints and replay the lines.but when i draw with some speed i am missing some coordinates.as a result when i replay the stroke,
where ever the points r missing iam getting a jerky line(the replay is not uniform).
any method to trap all the coordinates
please help,
thanks and regards.
ravi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic