FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Rotate Bitmap
Posts: 128
Joined: Mon Jul 31, 2006 03:23 PM
Rotate Bitmap
Posted: Sun Sep 17, 2006 07: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

Continue the discussion