Hi There! I'm new in B4A. I need to print a Panel, I want to trasform it into PDF, but I read that is really difficult to do. So I would like to try to make a screenshoot or turn it (Panel) in .bmp and then save it for printing. I found this code-line but if I copy this in to button_click does not work. Can you help me please!!! (I'm sorry for my bad English)
B4X:
Dim v As B4XView = Panel1
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