pixmap rotation

BlitzMax Forums/BlitzMax Programming/pixmap rotation

gellyware(Posted 2005) [#1]
How do you rotate a pixmap?


Filax(Posted 2005) [#2]
Use setrotation


gellyware(Posted 2005) [#3]
Hm, that seems to only affect the background image.

I made frog tongue with a pixmap and I am trying to get the tongue to go where the user clicks on the screen.

Setrotation rotates any images but the pixmaps dont move.


gellyware(Posted 2005) [#4]
Is there any way to turn a pixmap into an image for use with image commands?


tonyg(Posted 2005) [#5]
You can use this...
my_image:TIMage = LoadImage(my_pixmap)
I'm surprised Pixmaps are not affected by the current rotation (or any blend, scale etc)


Dreamora(Posted 2005) [#6]
in that case use the correct sethandle to position the "rotation center" in the rotation center of the frog and rotate it then. after that you can position it with the same coordinates as before rotation


ImaginaryHuman(Posted 2005) [#7]
You should ideally be trying to use Images wherever possible since Pixmaps are much much slower and less flexible.