I have 2 screen shots that I want to join together (left and right) and then save the new bitmap on my phone
So I think you are saying that I create 1 canvas and add 2 bmp's to it?
Post your failed attempt and we will help you fix it.Lol, just because I think that doesn’t mean I can figure out how to do it
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Private xui As XUI
Private canvas As B4XCanvas
Private pnl1 As B4XView
Private bmp1rect As B4XRect
Private bmp2rect As B4XRect
Private bmp1 As B4XBitmap
Private bmp2 As B4XBitmap
End Sub
Private Sub Application_Start (Nav As NavigationController)
'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
NavControl.ShowPage(Page1)
Page1.RootPanel.LoadLayout("Bitmap")
canvas.Initialize(pnl1)
bmp1= xui.LoadBitmap(File.DirAssets,"Shaelyn-Half-Field.png")
bmp2=xui.LoadBitmap(File.DirAssets,"Shaelyn-Half.png")
bmp1rect.Initialize(0,0,bmp1.Width,bmp1.Height)
bmp2rect.Initialize(bmp1.Width,0,bmp2.Width,bmp2.Height)
canvas.DrawBitmap(bmp1,bmp1rect)
canvas.DrawBitmap(bmp2,bmp2rect)
End Sub
Page1.RootPanel.LoadLayout("Bitmap")
If Page1.RootPanel.Width = 0 Then
Wait For Page1_Resize (Width As Float, Height As Float) '<---
End If
canvas.Initialize(pnl1)
bmp1= xui.LoadBitmap(File.DirAssets,"Shaelyn-Half-Field.png")
bmp2=xui.LoadBitmap(File.DirAssets,"Shaelyn-Half.png")
bmp1rect.Initialize(0,0,bmp1.Width,bmp1.Height)
bmp2rect.Initialize(bmp1.Width,0,bmp2.Width,bmp2.Height)
canvas.DrawBitmap(bmp1,bmp1rect)
canvas.DrawBitmap(bmp2,bmp2rect)
Canvas.Invalidate
Dim bmp As B4XBitmap = Canvas.Bitmap
Canvas.Release