P park jae hyun Member Licensed User Longtime User Jul 27, 2016 #1 Hello Screen capture will question If the video on the screen ---> not captured. By the way Power button + volume down button ---> Capture ok Please teach me
Hello Screen capture will question If the video on the screen ---> not captured. By the way Power button + volume down button ---> Capture ok Please teach me
Erel B4X founder Staff member Licensed User Longtime User Jul 27, 2016 #2 Are you asking about the IDE screen shot feature? Upvote 0
P park jae hyun Member Licensed User Longtime User Jul 28, 2016 #3 Erel said: Are you asking about the IDE screen shot feature? Click to expand... source Obj1.Target = Obj1.GetActivityBA Obj1.Target = Obj1.GetField("vg") bmp.InitializeMutable(Activity.Width, Activity.Height) c.Initialize2(bmp) Dim args(1) As Object Dim types(1) As String Obj2.Target = c Obj2.Target = Obj2.GetField("canvas") args(0) = Obj2.Target types(0) = "android.graphics.Canvas" Obj1.RunMethod4("draw", args, types) Dim Out As OutputStream Out = File.OpenOutput(File.DirRootExternal, dt & ".png", False) bmp.WriteToStream(Out, 100, "PNG") Out.Close Attachments 160728100710.png 47.3 KB · Views: 349 Screenshot_20160728-100718.png 498.9 KB · Views: 475 Upvote 0
Erel said: Are you asking about the IDE screen shot feature? Click to expand... source Obj1.Target = Obj1.GetActivityBA Obj1.Target = Obj1.GetField("vg") bmp.InitializeMutable(Activity.Width, Activity.Height) c.Initialize2(bmp) Dim args(1) As Object Dim types(1) As String Obj2.Target = c Obj2.Target = Obj2.GetField("canvas") args(0) = Obj2.Target types(0) = "android.graphics.Canvas" Obj1.RunMethod4("draw", args, types) Dim Out As OutputStream Out = File.OpenOutput(File.DirRootExternal, dt & ".png", False) bmp.WriteToStream(Out, 100, "PNG") Out.Close
Erel B4X founder Staff member Licensed User Longtime User Jul 28, 2016 #4 This code draws the activity layout. The video is not included as it is not drawn like other regular views. You cannot take screenshots with VideoView. Upvote 0
This code draws the activity layout. The video is not included as it is not drawn like other regular views. You cannot take screenshots with VideoView.
moster67 Expert Licensed User Longtime User Jul 29, 2016 #5 With the Vitamio 5 videoview library you can take screenshots. Upvote 0
P park jae hyun Member Licensed User Longtime User Aug 3, 2016 #6 Erel said: This code draws the activity layout. The video is not included as it is not drawn like other regular views. You cannot take screenshots with VideoView. Click to expand... Thank you. Upvote 0
Erel said: This code draws the activity layout. The video is not included as it is not drawn like other regular views. You cannot take screenshots with VideoView. Click to expand... Thank you.
P park jae hyun Member Licensed User Longtime User Aug 3, 2016 #7 moster67 said: With the Vitamio 5 videoview library you can take screenshots. Click to expand... Thank you. Upvote 0
moster67 said: With the Vitamio 5 videoview library you can take screenshots. Click to expand... Thank you.