For questions about screenshots — digital images that show the contents of a computer display,
Questions tagged [screenshot]
4722 questions
36
votes
8 answers
Display a view or splash screen before applicationDidEnterBackground (to avoid active view screenshot)
I have confidential informations in my app, so I would like to hide them with a splash screen when the app is about to be moved to background.
I do run the app on iOS6 and further.
I tried to display the view in applicationWillResignActive but the…

Tancrede Chazallet
- 7,035
- 6
- 41
- 62
35
votes
1 answer
where are device screenshots visible in Xcode6?
For Xcode 6, the older Xcode 4 & 5 Organizer menu item has been split up into both an Organizer and a Devices set of menu choices.
Under the Devices menu item, you'll see a list of the various devices Xcode knows about, in addition to simulators…

Michael Dautermann
- 88,797
- 17
- 166
- 215
35
votes
8 answers
Fastest method for screen capturing on Linux
This question is similar to this one
Fastest method of screen capturing
but for linux/X11.
To be more specific, i need a method to capture the pixel images of one window (the programmatic equivalent of alt-print screen in windows) running on a X11…

lurscher
- 25,930
- 29
- 122
- 185
34
votes
1 answer
How to take a screenshot of a WPF control?
I created a WPF application using the Bing maps WPF control.
I would like to be able to screenshot only the Bing maps control.
I use this code to make the screenshot:
// Store the size of the map control
int Width = (int)MyMap.RenderSize.Width;
int…

Walter Fabio Simoni
- 5,671
- 15
- 55
- 80
32
votes
3 answers
How can I programmatically take a screenshot of a webview, capturing the full page?
I think the title pretty much covers it, but I have a webview in my activity. I've loaded a url into the webview and I'd like to take a screenshot of the full page (whatever is in the viewport and the stuff "below the fold" as well).
I've got code…

Mark Rausch
- 512
- 2
- 5
- 9
32
votes
6 answers
C# - Capturing the Mouse cursor image
BACKGROUND
I am writing a screen capture application
My code is based derived from this project: http://www.codeproject.com/KB/cs/DesktopCaptureWithMouse.aspx?display=Print
Note that the code captures the the mouse cursor also (which is desirable…

namenlos
- 5,111
- 10
- 38
- 38
31
votes
3 answers
How do take a screenshot correctly with xlib?
I am trying to capture an image of the screen for use in screencasting. Thus I need a fast solution, and cannot rely on shell programs such as import or xwd.
This is the code I have written so far, but it fails and gives me a junk image, which just…
user406009
31
votes
4 answers
Xcode 9 - Simulator: Screenshots taken are not of correct resolution for ItunesConnect / AppStore Connect
In the old version of the Xcode Simulator (Xcode 8), you could press Command + 1, and it would show the simulator to be it's maximum dimensions (100%), even if that involved it expanding past the visible screen space. You could then press Command+S…

FranticRock
- 3,233
- 1
- 31
- 56
30
votes
8 answers
Automatic screenshots when test fail by Selenium Webdriver in Python
I want to automatic capturing screenshots if my webdriver tests failed (any exception or assertion error). I am using Python unittest and Selenium Webdriver. Does anyone have any solution to this problem?

d1minshakov
- 301
- 1
- 3
- 6
29
votes
4 answers
Take screenshot in iPhone Simulator in Xcode 9
How can I take screenshot of size 1242 x 2208 (required for App Store) from iPhone 8 Plus simulator in Xcode 9.0? I can't resize the simulator like we did in earlier versions of Xcode. Is there any way to do it?

Rohitax Rajguru
- 893
- 2
- 13
- 35
29
votes
5 answers
Why does my programmatically created screenshot look so bad on iOS 7?
I am trying to implement sharing app with facebook.
I used this code to take the screenshot:
CGSize imageSize = CGSizeMake(self.view.bounds.size.width, self.view.bounds.size.height);
UIGraphicsBeginImageContext(imageSize);
[self.view.layer…

Yossi
- 2,525
- 2
- 21
- 24
29
votes
4 answers
Is it possible to take a screenshot of the whole page with Selenium/Capybara?
PhantomJS has the option of taking a screenshot of the whole page (not just the current viewport). Is there any way to do so using Selenium? I am running the Cucumber/Capybara tests headlessly, using the headless gem. I would use PhantomJS, but I've…

TrashyMcTrash
- 1,234
- 2
- 15
- 39
28
votes
5 answers
Disabling iPhone screenshot feature
I'm working on an enterprise iPhone application for a client, the issue at hand is customer information will show up on the phone. My client is worried that the information could be caught using the iphone screen capture feature (home + power…
user192168
28
votes
5 answers
How to take a screenshot and share it programmatically
I am making an application in Android in which I have to take screenshot of one of my activities and mail it as attachment.
I want to take screenshot of the current page and then share it via email, Bluetooth, Twitter or Facebook.
My code is as…
user1025050
27
votes
4 answers
Screenshot in Swift iOS?
How can I take screenshot from my screen by code (in Swift) and save it?
Can I take screenshot and save it as image?
I've looked and I see this code, but I can't use it (I think) because it doesn't do anything.
var screen =…

giorgionocera
- 6,428
- 6
- 20
- 17