A Almog Active Member Licensed User Sep 11, 2018 #1 Hello, I used Erel solution (https://www.b4x.com/android/forum/threads/save-only-the-image-inside-the-panel.92333/#post-583937) for saving a snapshot of a B4Xview, and wand to save it to dirinternal. I didnt find out how can I do that, and what type is erel's code returning. Does anybody know how can I use this and save the image to dirinternal? Thanks in advance.
Hello, I used Erel solution (https://www.b4x.com/android/forum/threads/save-only-the-image-inside-the-panel.92333/#post-583937) for saving a snapshot of a B4Xview, and wand to save it to dirinternal. I didnt find out how can I do that, and what type is erel's code returning. Does anybody know how can I use this and save the image to dirinternal? Thanks in advance.
npsonic Active Member Licensed User Sep 11, 2018 #2 'v' is B4XView Code: Copy Dim bmp As B4XBitmap = v.Snapshot Dim out As OutputStream out = File.OpenOutput(File.DirInternal, "mybitmap.png", False) bmp.WriteToStream(out, 100, "PNG") out.Close Upvote 0
'v' is B4XView Code: Copy Dim bmp As B4XBitmap = v.Snapshot Dim out As OutputStream out = File.OpenOutput(File.DirInternal, "mybitmap.png", False) bmp.WriteToStream(out, 100, "PNG") out.Close
A Almog Active Member Licensed User Sep 11, 2018 #3 npsonic said: 'v' is B4XView Code: Copy Dim bmp As B4XBitmap = v.Snapshot Dim out As OutputStream out = File.OpenOutput(File.DirInternal, "mybitmap.png", False) bmp.WriteToStream(out, 100, "PNG") out.Close Click to expand... Thanks, Also, do you know what I suppost to fill in (V As B4XView, ? Thanks in advance. Upvote 0
npsonic said: 'v' is B4XView Code: Copy Dim bmp As B4XBitmap = v.Snapshot Dim out As OutputStream out = File.OpenOutput(File.DirInternal, "mybitmap.png", False) bmp.WriteToStream(out, 100, "PNG") out.Close Click to expand... Thanks, Also, do you know what I suppost to fill in (V As B4XView, ? Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Sep 12, 2018 #4 Example: Code: Copy Dim v As B4XView = Panel3 Upvote 0