screenshot

How to take screenshot (high fps) in Linux (programming)

ぃ、小莉子 提交于 2020-01-01 03:24:06
问题 First of all I want to say that I've been reading a lot about this and I've learnt many ways to do it, but I haven't been able to do it in linux. My project is an ambilight with arduino, so I need to take a screenshot of the desktop and analyze its colour. At the beginning I used Processing 2.0 with the class 'Robot' from 'java.awt'. Initially I could take 5 frames per second and then I got 13fps. This works but I want more perfomance, so I start reading. In Windows or Mac you have libraries

Programmatically take a screenshot combining OpenGL and UIKit elements

旧街凉风 提交于 2020-01-01 03:22:05
问题 I was wondering if anyone could provide an example of how to take a screenshot which mixes OpenGL and UIKit elements. Ever since Apple made UIGetScreenImage() private this has become a pretty difficult task because the two common methods Apple used to replace it capture only UIKit or only OpenGL. This similar question references Apple's Technical Q&A QA1714, but the QA only describes how to handle elements from the camera and UIKit. How do you go about rendering the UIKit view hierarchy into

Is CopyFromScreen a right way to get screenshots?

别等时光非礼了梦想. 提交于 2020-01-01 02:43:08
问题 I am creating an app that takes a screenshot of the desktop at a certain interval of time. Code : String nme = ""; Bitmap printscreen = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); Graphics graphics = Graphics.FromImage(printscreen as Image); graphics.CopyFromScreen(0, 0, 0, 0, printscreen.Size); nme = DateTime.Now.ToString(); printscreen.Save(@"F:\Temp\printScre.jpg", ImageFormat.Jpeg); Is CopyFromScreen a right way to get the screenshot of the desktop?

WPF - Graphics.CopyFromScreen returns a black image

前提是你 提交于 2020-01-01 02:33:28
问题 The following method is taken from a WinForms app. It simply captures the screen, but I needed to modify it to work in a WPF application. When I use it, it returns a black image. The dimensions are correct. I have not got any open DirectX or videos and it wouldn't work even on my desktop. public static Bitmap CaptureScreen() { // Set up a bitmap of the correct size Bitmap CapturedImage = new Bitmap((int)SystemParameters.VirtualScreenWidth, (int)SystemParameters.VirtualScreenHeight, System

Android: publish an app with different screenshots corresponding to different languages?

﹥>﹥吖頭↗ 提交于 2020-01-01 02:29:12
问题 I have already published my application on the Android market and everything works well. For this application, I took several screenshots and I uploaded them too, in the "Upload assets" part of the "Edit application" page. But my application is available in several language and I have uploaded only english screenshot. Is it possible to upload screenshots for the different languages? For example, a Spanish screenshot for the Spanish version of the Android market or a Japanese screenshot for

Take whole “Screenshot” of a scrollable View

时光怂恿深爱的人放手 提交于 2019-12-31 07:14:09
问题 In my Fragment's layout i have a ScrollView with a LinearLayout inside <ScrollView android:id="@+id/scrollview" android:layout_width="match_parent" android:layout_height="wrap_content" > <LinearLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <!-- Other views --> </LinearLayout> </ScrollView> So i need to create and share a picture of entire content of scrollview. All solutions i've tried take

Generic error in GDI+ occurs in Screen Capture

时光总嘲笑我的痴心妄想 提交于 2019-12-31 06:54:08
问题 I am writing an application that takes screen shots, but randomly it will throw a GDI+ generic error. Unfortunately, a generic error does not help me debug well. My code for the screen capture is: static void CaptureScreen() { bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb); // Create a graphics object from the bitmap gfxScreenshot = Graphics.FromImage(bmpScreenshot); // Take the screenshot from the upper left

Disable Screenshot of my Swing Window

久未见 提交于 2019-12-31 03:19:19
问题 I have a Swing window that has sensitive information in it and I would like to prevent users from taking screenshots, or making by window invisible when they do take the screenshots. How can I achieve this? 回答1: One clever approach I have seen in the past takes advantage of human's persistance of vision by display only a portion of the image at a time. As a simple example, imagine that instead of rendering the password 'p455w0rd' in a textbox, you had a special text box that renders three

Screen Capture target area of the desktop

南笙酒味 提交于 2019-12-31 03:04:06
问题 I'm trying to recreate a Winform application in C# that has the same functionality as the snipping tool windows provides. That is, allowing the user to drag a rectangle over the desktop and capture what ever is inside as an image. At the moment I only have the ability to draw a rectangle with the mouse, and that's within the winform. Can anyone point me in the direction of how to do it so I can do it within the whole desktop? My code for drawing the rectangle is as follows: Rectangle rect;

Screen Capture target area of the desktop

為{幸葍}努か 提交于 2019-12-31 03:03:26
问题 I'm trying to recreate a Winform application in C# that has the same functionality as the snipping tool windows provides. That is, allowing the user to drag a rectangle over the desktop and capture what ever is inside as an image. At the moment I only have the ability to draw a rectangle with the mouse, and that's within the winform. Can anyone point me in the direction of how to do it so I can do it within the whole desktop? My code for drawing the rectangle is as follows: Rectangle rect;