For questions about screenshots — digital images that show the contents of a computer display,
Questions tagged [screenshot]
4722 questions
2
votes
0 answers
Capturing HD screenshot of screen using java?
I have recently studied about capturing screen shot in java using Robot class. I have implement following code for that.
public class Beginning implements Runnable {
private Thread thread;
private static long counter = 0;
private final…

Mayank Tiwari
- 2,974
- 5
- 30
- 52
2
votes
1 answer
Cannot use Window control simultaneously in two threads
From the Page_load event of Window1 I'm calling a function of a public class and passing parameter as the same Window1. After the function is called, a thread is started. The thread is called on Page_Loaded event of Window1. The code is like…

Farhan Mukadam
- 470
- 9
- 25
2
votes
0 answers
retrieve window screenshot / capture
I have a remote application that the a screenshot using "windows handle". ( I mean HDC, HBITMAP, ....).
The code look like this :
int nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
int nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
HDC hDesktopDC =…

Monero Jeanniton
- 441
- 8
- 20
2
votes
1 answer
Screen recorder in Ubuntu using python
I am a hobby programmer and trying to make screen-recorder in Ubuntu using python.
Using this code able to take screenshot.
import wx
app = wx.App(False)
s = wx.ScreenDC()
w, h = s.Size.Get()
b = wx.EmptyBitmap(w, h)
m =…

mridul
- 1,986
- 9
- 29
- 50
2
votes
1 answer
Taking a Screenshot (UIImage) from UIView takes far too long
I have the following method to take a screenshot (UIImage) of a UIView which is far too slow
+ (UIImage *)imageWithView:(UIView *)view
{
CGSize size = view.bounds.size;
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
CGContextRef…

Georg
- 3,664
- 3
- 34
- 75
2
votes
2 answers
Selenium Webdriver/TestNG/Maven/Xvfb - take screenshot on fail?
wanted to ask you about the best way to take screenshot on fail in such project?
Should I do it in the Selenium code, or in the Maven project via some command or with Xvfb?
Im using Firefox headless via Xvfb.
I have seen a few classes on the…

Kaloyan Roussev
- 14,515
- 21
- 98
- 180
2
votes
1 answer
Take screenshot programatically for Google map V2
I am developing one Track Routes application for bikers. SO whatever route was drawn on map, I want that screen shot with that path drawn to use in share with Social Media.
But I am not getting screen shot of the map.
Anyone know how to take screen…

Pratik Dasa
- 7,439
- 4
- 30
- 44
2
votes
1 answer
c# screenshot of active window but doesn't caputre the window
I'm creating an application in which I need to create a PDF file with the screenshot of the application.
I found how to create the screenshot and how to put it in my file. All is working well in most situations.
My problem comes when I use more…

Bruno
- 21
- 1
- 6
2
votes
2 answers
Android Screenshot and Screencap Permissions
I'm trying to take a screensshot over adb logged as root and I'm getting a "Permission Denied" error.
screenshot -i /sdcard/screen.png
error: writing file /sdcard/screen.png: Permission denied
But if I use screencap it works.
screencap -p…

Pedro Lobito
- 94,083
- 31
- 258
- 268
2
votes
1 answer
Desktop screenshot in WPF
How can I take a screenshot of the desktop in WPF? Preferably with the mouse cursor showing.

luvieere
- 37,065
- 18
- 127
- 179
2
votes
2 answers
How to take a custom shaped screenshot?
For creating screenshots in Java i have been using the java.awt.Robot class' createScreenCapture() method. But i was only able to create screenshots in the Rectangle shape. Now my question is is there any way to take a screenshot of custom shape…

JavaTechnical
- 8,846
- 8
- 61
- 97
2
votes
2 answers
layoutroot can't be resolved
I'm a newbie in android java programming, and I have a code to take a screenshot:
View content = findViewById(R.id.layoutroot); //it gives the "layoutroot cannot be resolved or is not a field" error
content.setDrawingCacheEnabled(true); …

Pedro Fraga
- 119
- 1
- 2
- 9
2
votes
1 answer
D3 screenshot to PDF
We have done a visualization, mostly in D3 and we would like to generate a nice pdf of it to benefit from vector rendering rather than doing a mere screenshot.
It can be seen at:
http://www.bonneel.com/prot/prot2/
I also saw Sergiy's tutorial…

nbonneel
- 3,286
- 4
- 29
- 39
2
votes
0 answers
Android screenshots at a high frame rate?
I'm trying to get screenshots of my Nexus 4 into my PC and I have tried all the other solutions - android-projector, droid@screen, screencast etc. and all of them give very low frame rates - 1 frame in 3-4 seconds. Droid@Screen doesn't seem to work,…

abhishek
- 817
- 6
- 19
- 33
2
votes
1 answer
How to kill headless X server started via Python?
I want to get screenshots of a webpage in Python. For this I am using http://github.com/AdamN/python-webkit2png/ .
newArgs = ["xvfb-run", "--server-args=-screen 0, 640x480x24", sys.argv[0]]
for i in range(1, len(sys.argv)):
if…

agiliq
- 7,518
- 14
- 54
- 74