screen-capture

How to prevent Screen Capture in Android

纵饮孤独 提交于 2019-12-17 02:41:33
问题 Is it possible to prevent the screen recording in Android Application? I would like to develop an Android Secure Application. In that I need to detect screen recording software which are running background and kill them. I have used SECURE FLAG for prevent screenshots. But I dont know is it possible to prevent Video capturing of Android Screen also. Let me know how to prevent screen capturing (video / screenshots). 回答1: I'm going to say that it is not possible to completely prevent screen

Matlab: using avifile, addframe, getframe; the generated avi is contorted

巧了我就是萌 提交于 2019-12-13 16:29:14
问题 I'm training a machine learning algorithm, and wanted to make an avi to visualize the appearance of weights over time. I threw together something similar to: aviobj = avifile( 'weights.avi' ); for jj = 1:whatever % do some training imagesc( ... ); % where '...' is stuff to reshape the weight matrix aviobj = addframe( aviobj, getframe ); end; aviobj = close( aviobj ); implay( 'weights.avi' ); The problem is, the frames end up looking like this: The numbers shouldn't have that orientation. This

MATLAB getframe captures whatever is on screen

◇◆丶佛笑我妖孽 提交于 2019-12-13 15:00:09
问题 I am trying to create a movie from my MATLAB plot. When I call getframe, it "usually" captures the plot image, but sometimes if there is something else active on the screen (which is normal if I continue to use the computer) it captures whatever window is active. Is there another way to grab the image of the active figure? e.g. fig = figure; aviobj = avifile('sample.avi','compression','None'); for i=1:t clf(fig); plot(...); % some arbitrary plotting hold on; plot(...); % some other arbitrary

C# Using PrintWindow

∥☆過路亽.° 提交于 2019-12-13 09:13:20
问题 I am trying to capture a window in win7 without disabling aero and I hear PrintWindow Works. But I'm not sure how to use it, I found some articles but I can't see any image or bitmap output in any of them Has anyone ever had experience with this function and knows how to use it? 回答1: Previous link here. Code sample from the same link: Graphics g = form.CreateGraphics(); Bitmap bmp = new Bitmap(form.Size.Width, form.Size.Height, g); Graphics memoryGraphics = Graphics.FromImage(bmp); IntPtr dc

How to take 30 screenshots in a second in an iOS device?

纵饮孤独 提交于 2019-12-13 06:12:19
问题 In my iOS app, I am using NSTime to invoke a method which takes screenshot of the device screen. I am taking 30 screenshots per second. On simulator its working fine (as the processor of Mac is far more powerful than iPad). But it takes less number of screenshots in actual device. How can I do this? Any reliable alternative for timer? Please help 来源: https://stackoverflow.com/questions/16982374/how-to-take-30-screenshots-in-a-second-in-an-ios-device

Screencapture -l : illegal option?

不问归期 提交于 2019-12-13 04:33:15
问题 I've seen in many pages here on SO (for example here: https://apple.stackexchange.com/questions/56561/how-do-i-find-the-windowid-to-pass-to-screencapture-l) that you have to use the command: screencapture -l in order to capture a single window given its ID. However when I try to enter screencapture -l into the terminal I get this error: screencapture: illegal option -- l I've checked a reference and actually I can't see -l as a possible attribute for screencapture: http://guides.macrumors.com

Screen Capture (CopyFromScreen didn't work fully) [duplicate]

扶醉桌前 提交于 2019-12-13 04:27:03
问题 This question already has an answer here : Closed 6 years ago . Possible Duplicate: How to get screenshot to include the invoking window (on XP) I'm currently using CopyFromScreen(0, 0, 0, 0, imageSize) to capture the desktop but unfortunately, there is a particular winform's contents which it didn't capture (the rest are alright). This winform's job is pretty simple; it's just a ticker program. Black background and a label that's moving per millisecond or so, that's all. No borders. I can't

Take screenshot of screen behind form?

ⅰ亾dé卋堺 提交于 2019-12-13 01:15:47
问题 I am trying to take a screenshot with a form of a screen BUT I don't want my form to be included in the screenshot. This is my current Code for getting the screenshot. Bitmap bt; Graphics screenshot; private void button1_Click_1(object sender, EventArgs e) { this.Opacity = 0; bt = new Bitmap(Screen.FromControl(this).Bounds.Width, Screen.FromControl(this).Bounds.Height, PixelFormat.Format32bppArgb); screenshot = Graphics.FromImage(bt); screenshot.CopyFromScreen(Screen.FromControl(this).Bounds

Java can't record the screen fast enough

我是研究僧i 提交于 2019-12-12 20:31:50
问题 I am trying to make a record program in Java. I would prefer not to use any external libraries other than JMF (Java Media Framework). I am using two Swing Timers (as its a Swing application), one to capture the screen & add it to a queue and the other to take the BufferedImage out of the queue & write it to a file. Here are my timers: To insert into the queue: timer = new Timer(1000/FPS, new ActionListener() { //FPS is a user-inputed value from 1-60 by default its 25 @Override public void

How to scale down the size and quality of an BufferedImage?

痞子三分冷 提交于 2019-12-12 14:26:01
问题 I'm working on a project, a client-server application named 'remote desktop control'. What I need to do is take a screen capture of the client computer and send this screen capture to the server computer. I would probably need to send 3 to 5 images per second. But considering that sending BufferedImage directly will be too costly for the process, I need to reduce the size of the images. The image quality need not to be loss less. How can I reduce the byte size of the image? Any suggestions?