Ryan Blevins
Ryan Blevins

Reputation: 166

VB 2008 move a drawing

I'm beginning to learn about 2D graphics, and I have made a program in which a small space ship rotates, with some tutorials I found, then when i tried to move it I realized that .location does not work for bitmaps... Suggestions? I just want to move the image...

Upvotes: 0

Views: 454

Answers (1)

John Alexiou
John Alexiou

Reputation: 29244

Before you draw your ship, move the coordinate origin with

g.TranslateTransform(dx,dy);

where g is the Graphics object you are drawing with.

Upvotes: 1

Related Questions