screen-capture

Alternative of xuggler for video encoding which doesnot require installaion? [closed]

三世轮回 提交于 2020-01-13 04:41:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am creating a screencast Java Web Start application. Encoding Video using xuggler requires: installing xuggler on the client system - Which is tedious. (OR) Using xuggle-xuggler.jar version 5.2 or above whose size is around 35 MB plus. - this increases the time required for the application to load. Is there

How to read the screen pixels?

本小妞迷上赌 提交于 2020-01-09 04:43:29
问题 I want to read a rectangular area, or whole screen pixels. As if screenshot button was pressed. How i do this? Edit: Working code: void CaptureScreen(char *filename) { int nScreenWidth = GetSystemMetrics(SM_CXSCREEN); int nScreenHeight = GetSystemMetrics(SM_CYSCREEN); HWND hDesktopWnd = GetDesktopWindow(); HDC hDesktopDC = GetDC(hDesktopWnd); HDC hCaptureDC = CreateCompatibleDC(hDesktopDC); HBITMAP hCaptureBitmap = CreateCompatibleBitmap(hDesktopDC, nScreenWidth, nScreenHeight); SelectObject

C++ Screen capture fail after hundreds repetitions on Windows: memory leak?

梦想的初衷 提交于 2020-01-06 06:49:07
问题 I use a function which captures a screen using the BitBlt mehtod and can then return a HBITMAP . int screenCapture() { int width = 1000; int height = 700; HDC hdcTemp, hdc; BYTE* bitPointer; hdc = GetDC(HWND_DESKTOP); hdcTemp = CreateCompatibleDC(hdc); BITMAPINFO bitmap; bitmap.bmiHeader.biSize = sizeof(bitmap.bmiHeader); bitmap.bmiHeader.biWidth = width; bitmap.bmiHeader.biHeight = -height; bitmap.bmiHeader.biPlanes = 1; bitmap.bmiHeader.biBitCount = 24; bitmap.bmiHeader.biCompression = BI

Android screen capture problem in Eclipse

梦想的初衷 提交于 2020-01-01 06:36:50
问题 I am having trouble using the "Screen Capture" function in Eclipse to capture an Android screen shot. I have the correct tab open, and when I click the screen capture icon, the box pops up and just stays on "Capturing..." but the display never changes from a white box with an X through it. I have USB debugging turned on on the phone and I have the correct device selected in Eclipse..any other tips? Thanks! 回答1: Navigate to your android sdk install folder. Open the Tools folder and find DDMS.

Easiest way to select screen region

无人久伴 提交于 2019-12-25 04:07:20
问题 I'm writing a simple program in C# + WPF that records/serializes user mouse and keyboard activities and then he can playback it. Some of its features require user to specify coordinates of a small area in the screen. Typing coordinates of top left and bottom right corners to textboxes is not very comfortable so I want to select it in similar way like Windows Snipping Tool, ZScreen/ShareX etc. do that. Something like that, maybe simplified What is the easiest way to implement that? I've

prevent screen capture

六月ゝ 毕业季﹏ 提交于 2019-12-24 23:02:45
问题 i am developing a video player i silverlight i wanna something to prevent recording or screen capturing i thought about hacking the windows APIs and stop my program from running if there was any of those capturing software asking the user to close it first but i donno how to do this is there another solution ??!!!! 回答1: You could go about using a key hook system, stopping the user pressing the print screen key on the keyboard, that would be a start. There aren't many systems which stop users

PrintWindow works in standalone application and does partially work in NPAPI plugin

放肆的年华 提交于 2019-12-24 10:15:33
问题 I have a code, which captures a given window by PrintWindow function. Specifically I do capture web-pages in a browser. This code is tested in a standalone Windows application, and it works ok. The same code is incorporated into NPAPI plugin and loaded into Google Chrome. There problems happen. If Chrome has only one tab, the code works OK. If Chrome has 2 tabs, the code returns black box of expected size. I tested the standalone application and the plugin at the same moment, on the same

MATLAB getframe conflict in loop to create animated gifs

回眸只為那壹抹淺笑 提交于 2019-12-24 08:15:12
问题 I'm trying to animate an image and save it as a .gif file. After crafting an equation, I use imshow within a loop and capture successive frames with getframe, which I then convert to an image and again into an indexed file. I've tried other approaches to this but always came up with the same problem. Even the sample 'peaks/surf' function in Matlab's documentation on creating animated gifs doesn't output the correct .gif file (meaning it lags because of repeated frames). The problem I'm having

DPI aware screen capture

时光怂恿深爱的人放手 提交于 2019-12-24 05:54:13
问题 I used AutoIt's _ScreenCapture_Capture() before without any trouble. But on Windows 10 with a 4k resolution screen I'm using DPI scaling at 200%. _ScreenCapture_capture() now gets something 2x zoomed in and half the location I asked for. For instance : _ScreenCapture_Capture("c:\a.bmp", 100, 100, 200, 200) ; Path, X1, Y1, X2, Y2 Does not return a 100x100 pixel square of the screen (at 100,100 to 200,200 ). It returns a 100x100 pixel square (at 50,50 to 100,100 ) instead. I did find a solution

Prevent system from taking a “use on resume” snapshot of app

好久不见. 提交于 2019-12-24 03:08:30
问题 I have some sensitive data displayed to my user within the app, and when the user clicks the home button and comes back into the app, Apple has a snapshot functionality that displays a picture of the last screen on the device before the home button was pressed. Is there any way to disable this effect entirely? I have seen ways here to display an image upon background activation that pushes on top of the view and is displayed first in place of the snapshot when the user returns to the app, but