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

Move a image in PDA

 
Falcon Ken
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i had created an image in a pda. Please tell me how to move the image in the PDA by using stylus pen.
i use this to create a image
rookr = Image.createImage ("/rookr.png");

and use this colde to set the coordinate in the pda
g.drawImage (rookr, 10, 0, Graphics.TOP | Graphics.LEFT);

just need to know how to move it?
 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what a stylus pen is, or how it can be used to manipulate
the canvas.. but you can move the image by changing the x and y coordinates
in the g.drawImage(....) method.

/Svend Rost
 
Falcon Ken
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stylus pen is a pen like shape thing that is attach to a pda and use it as a pointer on the touch screen in a pda.
i need to know the coordinate that where my stylus pointer is touching the touch screen in the pda. So that i can move the picture in s certain area i want it to.
Just like i am developing a chess game in a pda and how it play. I had attach a chess picture in the pda but the picture is static and can't move it around.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic