asales Expert Licensed User Longtime User Oct 8, 2015 #1 I used this code snippet to capture a panel to imageview: https://www.b4x.com/android/forum/threads/capture-complete-panel-to-imageview.40657/ I changed the code to capture a panel inside another panel, but don't work. See image and example in attached. The captured image has a wrong top and left margins. I don't know how to change the sub PanelCapture to capture correctly the panel. Thanks in advance for any tip. Attachments capturepanel2.zip 34.4 KB · Views: 175
I used this code snippet to capture a panel to imageview: https://www.b4x.com/android/forum/threads/capture-complete-panel-to-imageview.40657/ I changed the code to capture a panel inside another panel, but don't work. See image and example in attached. The captured image has a wrong top and left margins. I don't know how to change the sub PanelCapture to capture correctly the panel. Thanks in advance for any tip.
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2015 #2 It should be: B4X: Obj1.Target = pnl Instead of: B4X: Obj1.Target = Obj1.GetActivityBA Obj1.Target = Obj1.GetField("vg") Upvote 0
It should be: B4X: Obj1.Target = pnl Instead of: B4X: Obj1.Target = Obj1.GetActivityBA Obj1.Target = Obj1.GetField("vg")
asales Expert Licensed User Longtime User Oct 9, 2015 #3 Thanks Erel. Works Fine. Problem solved. Upvote 0