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