Created
August 8, 2011 18:15
-
-
Save vickyg3/1132336 to your computer and use it in GitHub Desktop.
Take Snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
filename = '1.png' | |
device = MonkeyRunner.waitForConnection() | |
device.takeSnapshot().getSubImage((10, 10, 220, 40)).writeToFile(filename, 'png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment