rotaing 2d images

Blitz3D Forums/Blitz3D Beginners Area/rotaing 2d images

googlemesilly(Posted 2007) [#1]
when rotating images in 2D, it rotates the image from the top left hand corner. is there anyway to rotate it from the centre of the image ?

thanks !!!


xtremegamr(Posted 2007) [#2]
Using Midhandle() should work, I think.


chwaga(Posted 2007) [#3]
yeah, or you could position the handle wherever on your image you want


Yo! Wazzup?(Posted 2007) [#4]
Or AutoMidHandle,
If you need to load a lot of images and they all need to be able to rotate around the middle...

EDIT: To do what chwaga said, use ImageXHandle and ImageYHandle


googlemesilly(Posted 2007) [#5]
thanks very much xtremegamr, chwaga and Yo!Wazzup! - lol


Sir Gak(Posted 2007) [#6]
RotateImage doesn't work well in real time, so you may want to pre-rotate your images and store those images in an array.

Here's the official quote from Help:

This command is not fast enough to render rotations in real time!