Android Question Save screen-shot for Panel to Bitmap

Adamdam

Active Member
Licensed User
Longtime User
Dear all,

Greetings,

Can I take screen shot for all things (objects, drawings, ..) over certain panel, and save it to BMP, PNG, or JPG.
Like what happen with any Android-based mobile by moving hand over the screen, but this time what over certain panel.
If I take what over panel to bitmap I can save it.

Thanks in advance.
Best regards
 

Brandsum

Well-Known Member
Licensed User
B4X:
Dim v as B4XView = yourview
Dim bmp as Bitmap = v.Snapshot 'use this as you want

'this is to store the snapshot as a file
Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, "snapshot.png", False)
bmp.WriteToStream(Out, 100, "PNG")
Out.Close
 
Upvote 0
Top