I'm using smm and want to save the bitmap which is set to the specified panel. The image is said to be on view(0) on the panel, which is said to be b4ximageview. I would like to know how to get the bitmap for saving it.
The solution to my question is actually much simpler , although not the exact answer to the question, to use result.mediafile :
B4X:
Private Sub ShowMedia (Result As MediaChooserResult)
If Result.Success Then
smm.SetMediaFromFile(design.Picpnl, Result.MediaDir, Result.MediaFile, Result.Mime, Null)
File.Copy(Result.MediaDir, Result.MediaFile, rp.GetSafeDirDefaultExternal(""), "temp.jpg")
B4XPages.ShowPage("design")
Else
design.Picpnl.RemoveAllViews
End If
End Sub