Rotate Bitmap

Post Reply
areang
Posts: 128
Joined: Mon Jul 31, 2006 3:23 pm

Rotate Bitmap

Post by areang »

Hi All !

How to rotate Bitmap to display on my dialog


function Tes()
local oDlg, oBmp

DEFINE DIALOG oDlg from 1,1 to 600,800 pixel title "Rotate Bitmap"

@1,1 BITMAP oBmp size 500,700 pixel of oDlg

/*

nAngle := 0
nAdd := 0.5

to left -> Rotate by nAngle := ( nAngle + nAdd ) % 360
to Right -> Rotate by nAngle := ( nAngle - nAdd ) % 360

*/

ACTIVATE oDlg CENTERED

thank

Areang
Post Reply