Rotate Bitmap

Rotate Bitmap

Postby areang » Sun Sep 17, 2006 7:14 am

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
areang
 
Posts: 128
Joined: Mon Jul 31, 2006 3:23 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 73 guests