For questions about screenshots — digital images that show the contents of a computer display,
Questions tagged [screenshot]
4722 questions
136
votes
8 answers
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?

jjnguy
- 136,852
- 53
- 295
- 323
134
votes
24 answers
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 camera roll)? Here is the code for the view:
var…

Sameer Hussain
- 2,421
- 8
- 23
- 41
118
votes
20 answers
How can I save a screenshot directly to a file in Windows?
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 posterity.
This is a very important question as the…

David Koelle
- 20,726
- 23
- 93
- 130
93
votes
9 answers
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
…

Victor
- 1,607
- 1
- 10
- 10
93
votes
24 answers
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 just on specific element based on ID or any specific…

fj123
- 963
- 1
- 8
- 11
92
votes
15 answers
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.

skyronic
- 1,577
- 1
- 11
- 15
85
votes
14 answers
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

Esteban Feldman
- 3,288
- 6
- 32
- 31
83
votes
12 answers
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, I'm not sure what Apple wants to see here.

Ken
- 30,811
- 34
- 116
- 155
81
votes
21 answers
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 = UIGraphicsGetImageFromCurrentImageContext()
…

Pietro La Spada
- 897
- 1
- 8
- 8
80
votes
3 answers
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 'Save' button that can save the full webpage as an…

Fizzix
- 23,679
- 38
- 110
- 176
76
votes
7 answers
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 for Android.
Is it possible somehow in iOS to…

zolio
- 2,439
- 4
- 22
- 34
73
votes
6 answers
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.

Omar Abid
- 15,753
- 28
- 77
- 108
69
votes
10 answers
Convert web page to image
What are some utilities to obtain an image of a webpage?
Basically equivalent to taking a "screenshot" of the page after opening it.

jrharshath
- 25,975
- 33
- 97
- 127
68
votes
10 answers
Command line program to create website screenshots (on Linux)
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 khtml2png, but I wonder if there are others that aren't…

ujh
- 4,023
- 3
- 27
- 31
67
votes
7 answers
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 motive to lie about this to "cheat", so I'm not…

Daniel Magliola
- 30,898
- 61
- 164
- 243