Questions tagged [screenshot]

For questions about screenshots — digital images that show the contents of a computer display,

4722 questions
65
votes
1 answer

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 specifying the coordinates and dimensions of the…
bguiz
  • 27,371
  • 47
  • 154
  • 243
64
votes
4 answers

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 on my desktop surrounding the iOS Simulator…
Kieran
  • 5,906
  • 3
  • 24
  • 34
62
votes
5 answers

How can I take a screenshot in a windows application?

How can I take a screenshot of the current screen using Win32?
user63898
  • 29,839
  • 85
  • 272
  • 514
61
votes
6 answers

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 prompts are on a virtual desktop (or something like…
Adrian McCarthy
  • 45,555
  • 16
  • 123
  • 175
59
votes
9 answers

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 of the screen with Python on Windows? I have…
Zac Brown
  • 5,905
  • 19
  • 59
  • 107
56
votes
4 answers

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?
Hao Wooi Lim
  • 3,928
  • 4
  • 29
  • 35
55
votes
3 answers

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 netflix (in my case Windows 10 and Chrome) the video…
WillD
  • 5,170
  • 6
  • 27
  • 56
55
votes
11 answers

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 should be possible. I do not need to save the…
Adam Haile
  • 30,705
  • 58
  • 191
  • 286
52
votes
1 answer

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 apps came to that use this feature, allowing to…
52
votes
16 answers

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 already tried some solutions, but they didn't work for…
just_deko
  • 1,024
  • 1
  • 14
  • 29
51
votes
13 answers

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 is displayed. Are there any particular tools you…
James
  • 5,622
  • 9
  • 34
  • 42
51
votes
7 answers

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 take in around ten web addresses and will save…
Mike B
  • 12,768
  • 20
  • 83
  • 109
49
votes
15 answers

Take a screenshot of a whole View

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. The problem is - the table is nearly always…
softwaresupply
  • 1,908
  • 3
  • 20
  • 34
48
votes
8 answers

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.
Mostafa Monowar
  • 881
  • 1
  • 8
  • 14
48
votes
10 answers

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 is not what I want. I need it in the emulator and…
lseeo
  • 799
  • 2
  • 9
  • 15