pixmap rotation
BlitzMax Forums/BlitzMax Programming/pixmap rotation
| ||
How do you rotate a pixmap? |
| ||
Use setrotation |
| ||
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. |
| ||
Is there any way to turn a pixmap into an image for use with image commands? |
| ||
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) |
| ||
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 |
| ||
You should ideally be trying to use Images wherever possible since Pixmaps are much much slower and less flexible. |