Android Question ABExtDrawing library, method rotate doesn't work

arjian

Member
Licensed User
Longtime User
i want to rotate what i draw in a canvas by using ABExtDrawing
as you see i used rotate method,the code draw a line but it doesn't rotate that
i don't know why, maybe i'm doing something wrong
any help would be appreciated

Sub Globals
Private Panel1 As Panel
Private Button1 As Button
Dim cvs As Canvas
Dim exdraw As ABExtDrawing
Dim p As ABPaint
Dim ang As Float
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("layout")
p.Initialize
cvs.Initialize(Panel1)
exdraw.drawLine(cvs,10%x,10%y,20%x,20%y,p)
ang=10
End Sub


Sub Button1_Click
exdraw.rotate(cvs,ang)
ang=ang+10
Log(ang)
End Sub
 
Top