Page 1 of 1

Rotate Bitmap

Posted: Sun Sep 17, 2006 7:14 am
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