Posted: 2nd Mar 2003 4:11
I wrote this today to help someone who needed to rotate images in DBPro. The only DBPro image rotation that I know of applies to sprites. So I played a little trick to make a rotated image.

Save this image

to your Win9X desktop, then execute the snippet.
The code will create a rotated image (#5). The rotated image is also displayed as a sprite cursor.

+ Code Snippet
Load Image "c:\windows\desktop\dbpy.jpg",2
Set Sprite 1,0,1
Rotate Sprite 1,45
Sprite 1,200,100,2
Sync
Get Image 5,90,90,310,310,1
Hide sprite 1
Set Sprite 1,1,1
Cls 0
Paste Image 2,0,0
Paste Image 5,150,150
Do
Sprite 2,Mousex()-110,Mousey()-110,5
Sync
Loop