screen-capture

Capturing a Window that is hidden or minimized

混江龙づ霸主 提交于 2019-11-27 13:21:41
I followed this tutorial (there's a bit more than what's listed here because in my code I get a window via mouse click) for grabbing a window as a bitmap and then rendering that bitmap in a different window. My question: When that window is minimized or hidden (SW_HIDE) my screen capture doesn't work, so is it possible to capture a window when it is minimized or hidden? The PrintWindow api works well, I use it for capturing thumbnails for hidden windows. Despite the name, it is different than WM_PRINT and WM_PRINTCLIENT, it works with pretty much every window except for Direct X / WPF windows.

How to read the screen pixels?

有些话、适合烂在心里 提交于 2019-11-27 12:28:53
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(hCaptureDC, hCaptureBitmap); BitBlt(hCaptureDC, 0, 0, nScreenWidth, nScreenHeight, hDesktopDC, 0,0,

Screen capture video in iOS programmatically

雨燕双飞 提交于 2019-11-27 11:23:00
问题 I'm trying to create a UIView that allows a user to tap a button in i and record the screen (not make a video from the camera), then save it to the document folder. I've seen a couple of SO articles here that talk about AVAssetWriter and make references to this link: http://codethink.no-ip.org/wordpress/archives/673 , but that link appears to be dead. But no one has actually shown a solution or provided any examples on how to accomplish. Anyone have any ideas or can point me in the right

windows service screen capture returns black screen

给你一囗甜甜゛ 提交于 2019-11-27 08:08:41
问题 I'm trying to create windows service application to capture screen. Previously i had problem of starting the service. Anyhow I'm able to solved it and now I'm having another problem. Now image is saving but it saves as a black screen. for this also there's lot of questions asked in SOF, but i couldn't able to solve my problem. Here what i have tried so far: public partial class ScreenCaptureService : ServiceBase { private static Bitmap bmpScreenshot; //private static Graphics gfxScreenshot;

Get screenshot of surfaceView in Android

ぃ、小莉子 提交于 2019-11-27 07:02:55
问题 In my application I have view with some buttons and SurfaceView. I must take screenshot of this view, but in place of SurfaceView is only black field. I try solutions which I found on stackoverflow, but they don't work for me. This is my code which I usualy take screenshots: File folder = new File(Environment.getExternalStorageDirectory().getPath() + "/folder"); if (!folder.exists()) { folder.mkdir(); } String path = folder.getAbsolutePath() + "snapshot.png"; File file = new File(path); file

Desktop Duplication API & switchable graphics

老子叫甜甜 提交于 2019-11-27 03:41:08
问题 The problem : calling IDXGIOutput1::DuplicateOutput method returns DXGI_ERROR_UNSUPPORTED when you run an application using discrete graphics controller on a machine with switchable graphics. This answer shed some light on the issue. In short, the discrete graphics renders only a part of the screen and sends the data to the framebuffer of the intergrated graphics controller -- in other words all output always goes through the integrated graphics controller. It seems that this is why

Capture QML drawing buffer, without displaying

China☆狼群 提交于 2019-11-27 02:52:45
问题 I need to grab each QML (QtQuick 2) drawing frame and sent it over the network. At the moment I have used method listed below, but this method has two big disadvantage 1) Due to Qt5 documentation grabWindow() function has performance issues 2) It can't work with hidden QML window Is it possible to get OpenGL render buffer right after QQuickWindow::afterRendering ? Using FBOs ? Shared opengl context ? class Grab: public QObject { public: Grab( QQuickWindow * wnd ) : wnd_(wnd) {} public slots:

How does TeamViewer take screenshots and allow remote control without root?

雨燕双飞 提交于 2019-11-27 02:43:59
问题 Background TeamViewer allows to remote control other android devices . it's quite slow, but it does the job. it requires 2 apps being installed. one that controls (link here), and one for being controlled (link here) . I'm not sure if it has any alternatives, but I would like to know if it's possible to do the same. The problem I can't find any special permission used by teamViewer, and it does it all without root. This is weird, since I've read on so many places that in order for an app to

Capture iOS Simulator video for App Preview

泪湿孤枕 提交于 2019-11-26 21:12:28
Okay, so we can now submit video previews of our apps on the App Store. According to Apple we should do so with an iOS8 device and OSX 10.10. The problem is you have to have all the different devices (4", 4.7", 5.5" and iPad). Is there an alternative to this? I am thinking of capturing a video of the simulator. The problem is the device screen is bigger than my FullHD monitor when shown in 100% resolution. Any solution that can capture a video right from the simulator in full resolution? Edit: Since a lot of people are answering questions I'm not asking let me say: - Recording one device size

Screen capture from windows service

落爺英雄遲暮 提交于 2019-11-26 20:06:11
问题 I've got DirectShow based screen capture software. Internally it calls CopyScreenToBitmap function to grab screen. Then the picture is compressed by ffdshow. It works fine as a desktop application, but as window service, on certain computers it does not work (black picture). I've set 'Allow service to interact with desktop' and run that service on current user account. Any ideas what could be wrong? I test it on windows XP, but it is expected to work on Vista and 7 as well. Yes it works as