SRL Archive - Help and Support

Rotating a bitmap


Smartzkid

2007-09-12 21:32:26

This code looks fine to me, but it will not work. It will lag, but it won't rotate the bitmap.

Bitmap := RotateBitmap(Bitmap, 5.0);

bullzeye95

2007-09-12 21:42:57

It works for me. Oh, and pi * 2 is 360 degrees if you didn't know.

Infantry001

2007-09-12 23:15:56

how do you know it won't rotate the bitmap?

SKy Scripter

2007-09-13 00:45:54

Bitmap := RotateBitmap(Radians(180));

Bitmap := RotateBitmap(Radians(360));

Bitmap := RotateBitmap(Radians(Degrees));

easy ;)

Smartzkid

2007-09-13 16:26:10

Thanks Sky

Still can't get it to work though :p

Infintry, I'm displaying it on the debug window.

EDIT: I got it; the command wasn't being executed; an if statement was exeiting the procedure too soon.

EDIT2: ARR! Why does rotation have to reset the bitmap's transparent color!