I have a ball image with 20 pixels width and 20 pixels height.
I want to show it on the PictureBox according to a given (x,y) position.
How can I achieve this? I don’t know how to begin with this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Graphics.DrawImage Method gives you all kind of possibilities to draw a given Image into a pictureBox. You can define Positions and Rectangles inside the Image and/or Picturebox as you like. See here:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawimage(v=vs.80).aspx
Or am I missing something?