And here is how you load an image and rotate it:
You can leave out MidHandleImage() if you want. But by using it the image is rotated around it's center (wich we place in the middle of the screen in this example)
But do try to comment that line out so you can see how it works.
Edit: I was too slow. :)
Edit again: Khomy Prime, sure it works if you load the image before setting a graphics mode? I think it's much better to load all graphics after the call to graphics()
Graphics 800,600 rot#=0.0 image:TImage = loadimage("image.png") ' load an image MidHandleImage( image ) ' When drawing the image, the center of the image is at the coordinates, instead of the top left corner Repeat Cls SetRotation rot drawimage( image, 400,300 ) ' Draw our image rot=rot+1.0 If rot>360.0 Then rot=rot-360.0 Flip FlushMem() Until KeyHit(KEY_ESCAPE)
You can leave out MidHandleImage() if you want. But by using it the image is rotated around it's center (wich we place in the middle of the screen in this example)
But do try to comment that line out so you can see how it works.
Edit: I was too slow. :)
Edit again: Khomy Prime, sure it works if you load the image before setting a graphics mode? I think it's much better to load all graphics after the call to graphics()