Reputation: 166
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
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