#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#AdditionalJar: gesture-views-2.8.3.aar
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private xui As XUI
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private cvGestureImage1 As cvGestureImage
Private btnReset As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Private Sub cvGestureImage1_StateChanged (cMap As Map)
Log($"Zoom: ${NumberFormat2(cvGestureImage1.GetZoom, 1, 2, 2,False)}x | Rotation: ${NumberFormat(cvGestureImage1.GetRotation, 0, 1)}° Position: ${NumberFormat(cvGestureImage1.GetX, 0, 0)}, ${NumberFormat(cvGestureImage1.GetY, 0, 0)}"$)
End Sub
Private Sub cvGestureImage1_StateReset (cMap As Map)
Log("State Reset")
End Sub
Private Sub btnReset_Click
cvGestureImage1.ResetState
End Sub