Android Question create bitmap of scrollview

tsteward

Well-Known Member
Licensed User
Longtime User
I want to be able to capture an image of the entire activity, just don't know how.
This activity has one scroll view so it needs to capture what is not on the screen as well.

I have tried this but in only captures what is visible.
Dim x As B4XView = Activity
Dim bmp As B4XBitmap = x.Snapshot
 

tsteward

Well-Known Member
Licensed User
Longtime User
I get an error using this code.
It shows on the second line "Dim xbmp As B4XBitmap = InternalPanel.Snapshot"
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
B4X:
Sub SignBtn_Click
    'ScrollView1.Visible=False
    'SigningPnl.Visible=True
    Dim InternalPanel As B4XView = ScrollView1.Panel  '  <--- scv = your ScrollView
    Log("Internal Panel Height " & InternalPanel.Height)
    Log("Internal Panel Width " & InternalPanel.Width)
    Dim xbmp As B4XBitmap = InternalPanel.Snapshot

Log:

Internal Panel Height 3633
Internal Panel Width -1
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…