Jump to content

  • Log In with Google      Sign In   
  • Create Account


Bitmap help with VB.Net 2003


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 FierceTiger   Members   -  Reputation: 122

Like
0Likes
Like

Posted 22 February 2005 - 09:01 AM

Ok I have a gotten a bitmap to be taken from file and put onto the form, how do i make it move around with the arrow keys?

Sponsor:

#2 Tang of the Mountain   Members   -  Reputation: 100

Like
0Likes
Like

Posted 22 February 2005 - 12:49 PM

you move the bitmap by incrementing/decrementing the coords as the arrow key is presssed. You are probably drawing your bitmap from the top left corner...so you know where these two points are, so

if(LEFT_ARROW_PRESSED)
{
BMP_X_COORD--;
}
if(UP_ARROW_PRESSED)
{
BMP_Y_COORD--;
}

and the reverse for the other two directions






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS