screenshot

WebRTC for Android : VideoRendererGUI take a screenshot in the video call

孤街醉人 提交于 2019-12-25 10:57:08
问题 The demand is that saving a video frame in the video call. I have made a demo that take a screenshot through the GLSurfaceView's method "onDrawFrame". But when I use the webrtc, it have its own renderer "VideoRendererGUI" .And then when I want to override it, I find it can't be overrided. the main part code : vsv = (GLSurfaceView) findViewById(R.id.glviewchild_call); vsv.setPreserveEGLContextOnPause(true); vsv.setKeepScreenOn(true); VideoRendererGui.setView(vsv, new Runnable() { @Override

Screenshot of a view without displaying it

自闭症网瘾萝莉.ら 提交于 2019-12-25 07:40:01
问题 I am trying to take a screenshot of a MySecondViewController.view while MyFirstViewController is displayed. I don't want MySecondViewController to appear on the screen at any moment. Is that possible? Here is my current code inside a function of MyFirstViewController: func createPreview() { let mySecondViewController = self.storyboard!.instantiateViewController(withIdentifier: "MySecondViewController") self.navigationController?.pushViewController(mySecondViewController, animated: false) let

How to capture snap of window including title bar

最后都变了- 提交于 2019-12-25 06:33:53
问题 below is my routine which works fine but the routine is not generating the image of window including title bar. so guide me what i need to change in code. protected override void WndProc(ref Message m) { if (m.Msg == WM_COMMAND && m.WParam.ToInt32() == SC_MINIMIZE) { OnMinimize(EventArgs.Empty); } base.WndProc(ref m); } protected virtual void OnMinimize(EventArgs e) { Rectangle r = this.RectangleToScreen(ClientRectangle); if (_lastSnapshot == null) { _lastSnapshot = new Bitmap(r.Width, r

snapshot from browser with flash or javascript

白昼怎懂夜的黑 提交于 2019-12-25 03:39:36
问题 I saw a thread here suggesting using a HPA to take a browser screenshot, but I was wondering if you could help me. I would like to be able to select a part of a piece of a web page and render it as an image. I know flex can take images of its own canvas, but is it possible to take a picture of the rest of the page? I would like to be able to do it with just flash and javascript, and without a plugin. I realise that I may be asking for magic, so thanks for your help. 回答1: If Flex can do it,

Screenshot of webpage in asp.net c#

天大地大妈咪最大 提交于 2019-12-25 02:24:32
问题 I am getting the screeshot of the website. The problem is i have textboxes on the screen. When i take screen shot the values of textboxes are not appearing. Can someone guide me in rearranging the code. Thank you protected void Button1_Click(object sender, EventArgs e) { MailMessage msg = new MailMessage(txt_From.Text, txt_To.Text); try { msg.Subject = txt_Subject.Text; msg.Body = "<br /><b>form:</b> " + form1 + "<br /><b>From:</b> " + txt_From.Text + "<br /><b>To:</b> " + txt_To.Text + "<br

Get a screenshot from a specific process/program and process a simple pattern recognition on it

白昼怎懂夜的黑 提交于 2019-12-25 02:12:10
问题 What specifically I need to do. On the click event of a button in my Web Application. I need it to capture a screenshot. without bringing the program or the process to front or set focus on it. and process a simple pattern recognition for this screenshot. the recognition function will return a bool value. I don't think that's that easy. but I've never done something like this, and if you could help me to figure out if it's possible and what's a clean way to do this ? Hint: I'll be trying to

C++: Taking a screenshot of the Windows Logon Screen/UAC Prompts without disabling UAC

我的梦境 提交于 2019-12-25 01:26:12
问题 I've been looking all over the internet for an answer to this, and it just doesn't seem to be directly answered, so I thought I would ask. Case scenario: I want to take a screenshot of what is currently on the computer screen. If it's the Windows Logon screen, I want it to be that. If it's the active user's desktop, I want to to be that. If the user elevates their application, and the UAC prompt shows up, I want it to be that. As per lots of reading and trial and error, my current setup is as

C# Dispose function giving an error

北慕城南 提交于 2019-12-24 20:13:22
问题 I am trying to take screenshot for every 10 miliseconds and set them as a Picturebox.image with Timer. For few seconds program runs perfectly but after few seconds program is crashing. I tried to use Dispose() Function in the end of the code to clear the memory but Dispose Function also gives an error. (increasing interval of timer doesn't worked) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using

Screenshot is not of full device UI but only of view

无人久伴 提交于 2019-12-24 16:24:18
问题 From my app, I am trying to take a full device screenshot equivalent of the user holding their device up-volume button and power button. I tried this approach: rootView = view.getRootView(); Bitmap bitmap = Bitmap.createBitmap(rootView.getWidth(), rootView.getHeight(), Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); rootView.draw(canvas); However, this is only drawing my application, and poorly at that, because if I have a menu open, or keyboard open when I take my screenshot, those

Can Delphi Firemonkey TControl.MakeScreenshot work in a thread?

浪子不回头ぞ 提交于 2019-12-24 14:08:46
问题 I've created a simple FireMonkey screenshot capture that works fine on Android and Windows..: procedure Capture; var B : TBitmap; begin try B := Layout1.MakeScreenshot; try B.SaveToFile( ..somefilepath.png ); finally B.Free; end; except on E:Exception do ShowMessage( E.Message ); end; end; end; when I moved it to a thread as below, it works fine in Windows but in Android I get the exception 'bitmap too big' from the call to MakeScreenshot. Are there additional steps needed to employ