Questions tagged [screenshot]
For questions about screenshots — digital images that show the contents of a computer display,
screenshot
4,766
questions
1050
votes
7
answers
624k
views
Using HTML5/Canvas/JavaScript to take in-browser screenshots
Google's "Report a Bug" or "Feedback Tool" lets you select an area of your browser window to create a screenshot that is submitted with your feedback about a bug.
Screenshot by ...
549
votes
26
answers
461k
views
How to programmatically take a screenshot on Android?
How can I take a screenshot of a selected area of phone-screen not by any program but from code?
548
votes
52
answers
671k
views
How to take a screenshot with Selenium WebDriver?
Is it possible to take a screenshot using Selenium WebDriver?
(Note: Not Selenium Remote Control)
530
votes
20
answers
308k
views
Take screenshots in the iOS simulator
I want to take a screenshot of my iOS application when it is running in the simulator, and save the screenshot on my Mac. How can I do this?
424
votes
18
answers
352k
views
Website screenshots
Is there any way of taking a screenshot of a website in PHP, then saving it to a file?
283
votes
17
answers
94k
views
Where are iOS simulator screenshots stored?
I have saved some screenshots in the iPhone Simulator running iOS 5, but I can't find them.
I had this problem before, and it took me frickin' ages to find them in the file system. Is this so simple ...
262
votes
15
answers
201k
views
What is App store screenshot size for 6.5" display?
Apparently, Apple documentation can't keep up with App Store changes. Until today, the biggest (optional) display size was a 5.8-Inch Super Retina Display with a resolution of 1125 x 2436 pixels. ...
246
votes
2
answers
371k
views
How to screenshot website in JavaScript client-side / how Google did it? (no need to access HDD) [duplicate]
I'm working on web application that needs to render a page and make a screenshot on the client (browser) side.
I don't need the screenshot to be saved on the local HDD though, just kept it in RAM ...
239
votes
6
answers
228k
views
Take a full page screenshot with Firefox on the command-line
I'm running Firefox on a Xvfb in a VPS. What I want to do is to take a full page screenshot of the page.
I can redirect Firefox to particular page using
firefox http://google.com
and take a ...
207
votes
13
answers
389k
views
Capture screenshot of active window?
I am making a screen capturing application and everything is going fine. All I need to do is capture the active window and take a screenshot of this active window. Does anyone know how I can do this?...
192
votes
16
answers
241k
views
How to prevent Screen Capture in Android
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 ...
174
votes
6
answers
93k
views
How to take emulator screenshots using Eclipse?
I need to take screenshots of an android application running on an emulator in Eclipse Galileo.
Is there a built-in feature for this or do I have to download a plugin of some sorts?
166
votes
6
answers
270k
views
Using ADB to capture the screen [duplicate]
I'm trying to get a screenshot of the phone screen as fast as possible.
Currently, I am doing:
adb shell screencap -p /sdcard/screencap.png && adb pull /sdcard/screencap.png
However it is too ...
159
votes
20
answers
134k
views
How to take a screenshot programmatically on iOS
I want a screenshot of the image on the screen saved into the saved photo library.
156
votes
7
answers
136k
views
iOS Detection of Screenshot?
The app Snapchat, on the App Store, is an app that lets you share pictures with a self-destruct on them. You can only view the pics for X seconds. If you attempt to take a screenshot while the picture ...
139
votes
24
answers
122k
views
How to convert a UIView to an image
I want to convert a UIView to an image and save it in my app. Can someone please tell me how to take screenshot of a view or convert it to an image and what is the best way to save it in an app (Not ...
139
votes
16
answers
107k
views
How Do I Take a Screen Shot of a UIView?
I am wondering how my iPhone app can take a screen shot of a specific UIView as a UIImage.
I tried this code but all I get is a blank image.
UIGraphicsBeginImageContext(CGSizeMake(320,480));
...
136
votes
8
answers
147k
views
Is there a way to take a screenshot using Java and save it to some sort of image?
Simple as the title states: Can you use only Java commands to take a screenshot and save it? Or, do I need to use an OS specific program to take the screenshot and then grab it off the clipboard?
119
votes
20
answers
322k
views
How can I save a screenshot directly to a file in Windows? [closed]
Is there a one button way to save a screenshot directly to a file in Windows?
TheSoftwareJedi accurately answered above question for Windows 8 and 10. Below original extra material remains for ...
99
votes
9
answers
302k
views
How to make a movie out of images in python
I currently try to make a movie out of images, but i could not find anything helpful .
Here is my code so far:
import time
from PIL import ImageGrab
x =0
while True:
try:
x+= 1
...
95
votes
25
answers
157k
views
How to capture the screenshot of a specific element rather than entire page using Selenium Webdriver?
Currently I'm trying to capture a screenshot using the Selenium WebDriver. But I can only obtain the whole page screen shot. However, what I wanted is just to capture a part of the page or perhaps ...
94
votes
15
answers
120k
views
Take a screenshot via a Python script on Linux
I want to take a screenshot via a python script and unobtrusively save it.
I'm only interested in the Linux solution, and should support any X based environment.
85
votes
14
answers
177k
views
How can I take a screenshot/image of a website using Python?
What I want to achieve is to get a website screenshot from any website in python.
Env: Linux
83
votes
12
answers
43k
views
iPhone in-app purchase screen shot
When posting an in-app purchase with Apple they ask for a screenshot to be included before going to review.
What kind of screenshots do they want?
My in-app purchase unlocks some of the lite version,...
81
votes
21
answers
96k
views
How do I take a full screen Screenshot in Swift?
I've found this code:
func screenShotMethod() {
//Create the UIImage
UIGraphicsBeginImageContext(view.frame.size)
view.layer.renderInContext(UIGraphicsGetCurrentContext())
let image = ...
81
votes
8
answers
181k
views
Prevent screen capture in an iOS app
I need to prevent screen capture by users of my app, for security reasons. The contents I display are confidential and should not be copied onto the device. I saw one answer on Stack Overflow, but ...
80
votes
2
answers
254k
views
How to save the contents of a div as a image?
Basically, I am doing what the heading states, attempting to save the contents of a div as an image.
I plan on making a small online application for the iPad.
One function that is a must is having a ...
77
votes
4
answers
40k
views
Take iOS Simulator screenshots including device frame?
I want to take screenshots of my iOS apps running from Xcode in the iPhone Simulator and iPad Simulator.
However, when I take screenshots, only the screen is captured. The device frame (which is shown ...
74
votes
7
answers
120k
views
Capture the Screen into a Bitmap
I want to capture the screen in my code to get an image - like using the 'print screen' button on the keyboard .
Does anyone have an idea how to do this? I have no starting point.
73
votes
15
answers
139k
views
Webdriver Screenshot in Python
When taking a screenshot using Selenium Webdriver on windows with python, the screenshot is saved directly to the path of the program, is there a way to save the .png file to a specific directory?
69
votes
10
answers
125k
views
Convert web page to image [closed]
What are some utilities to obtain an image of a webpage?
Basically equivalent to taking a "screenshot" of the page after opening it.
68
votes
10
answers
99k
views
Command line program to create website screenshots (on Linux) [closed]
What is a good command line tool to create screenshots of websites on Linux? I need to automatically generate screenshots of websites without human interaction. The only tool that I found was ...
67
votes
7
answers
55k
views
Can you take a "screenshot" of the page using Canvas?
I have a page where we're positioning a bunch of elements using CSS, and changing their "top and left" positions using JS.
I've had reports that these things have been misaligned, but a user has the ...
65
votes
1
answer
41k
views
Swing: Obtain Image of JFrame
How do I obtain a java.awt.Image of a JFrame?
I want to obtain a screen shot of a JFrame (for later use within my application). This is presently accomplished using the robot to take a screen shot ...
62
votes
5
answers
107k
views
How can I take a screenshot in a windows application?
How can I take a screenshot of the current screen using Win32?
61
votes
6
answers
23k
views
How to screen shot a UAC prompt?
I'm trying to document a work flow with a series of screen shots. At one point in the flow, a UAC prompt appears, and I'd like to grab a bitmap of it to make my storyboard complete. Because UAC ...
60
votes
9
answers
194k
views
Get screenshot on Windows with Python?
I am creating a Beta Testers reporting module so they can send in thier comments on my software, but I would like to have the option to include a screenshot with the report. How do I take a screenshot ...
60
votes
11
answers
178k
views
Capture video data from screen in Python
Is there a way with Python (maybe with OpenCV or PIL) to continuously grab frames of all or a portion of the screen, at least at 15 fps or more? I've seen it done in other languages, so in theory it ...
58
votes
3
answers
43k
views
How does Netflix prevent users from taking screenshots of chrome browser?
I noticed that netflix employs a method of preventing users from recording or even taking still screenshot images of the video playback in their browser-based app.
If you are watching a video on ...
57
votes
4
answers
86k
views
Get a screenshot of a specific application
I know I can get the screenshot of the entire screen using Graphics.CopyFromScreen(). However, what if I just want the screenshot of a specific application?
53
votes
16
answers
103k
views
How to take a screenshot of a current Activity and then share it?
I need to take a screenshot of Activity (without the title bar, and the user should NOT see that a screenshot has actually been taken) and then share it via an action menu button "share". I have ...
52
votes
1
answer
74k
views
How to record screen and take screenshots, using Android API?
Background
Android got a new API on Kitkat and Lollipop, to video capture the screen. You can do it either via the ADB tool or via code (starting from Lollipop).
Ever since the new API was out, many ...
51
votes
13
answers
70k
views
Best way to take screenshots of tests in Selenium 2?
I need a way to take screenshots of my functional tests. Right now I'm using Selenium 2 with C# bindings. I pretty much want to take a screenshot at the end of the test to make sure the desired page ...
51
votes
7
answers
64k
views
Programmatically get a screenshot of a page
I'm writing a specialized crawler and parser for internal use, and I require the ability to take a screenshot of a web page in order to check what colours are being used throughout. The program will ...
51
votes
8
answers
44k
views
view.getDrawingCache() is deprecated in Android API 28
In android API 28 view.getDrawingCache() has been deprecated. Is there any newer solution to generate a Bitmap of a particular view in android.
49
votes
15
answers
54k
views
Take a screenshot of a whole View [duplicate]
I have built a table which is basically done by HorizontalScrollView inside a ScrollView. I made the user can edit the fields.
Now I want to save the table on a screen, jpg, png, pdf or anything else....
48
votes
10
answers
66k
views
How to take screenshot in android emulator
From Android 4.0, it supports volumn down+power key to take screenshot and saved in gallery. But how to do this in android emulator.
I know in eclipse, there is a 'take screenshot' button, but this ...
47
votes
10
answers
62k
views
Netbeans Shortcut to Open File
I remember seeing someone use a shortcut in NetBeans to open a dialog similar to phpStrom that can open files based on class names or is it file name. whats that?
47
votes
4
answers
52k
views
How to take a screenshot of the current widget - Flutter
I need to take a screenshot of the current screen or widget and I need to write it into a file.
46
votes
14
answers
35k
views
Screenshot of the Nexus One from adb?
My goal is to be able to type a one word command and get a screenshot from a rooted Nexus One attached by USB.
So far, I can get the framebuffer which I believe is a 32bit xRGB888 raw image by ...