Python snips
Memory aid to remember how I did stuff in Python, C++, Linux and Windows.
Tuesday, January 4, 2011
Screen shot in windows
import ImageGrab
a=ImageGrab.grab()
a.mode
x, y=a.size
st=a.tostring()
ImageGrab.grab().save('screenshot.jpg')
a.save('screenshot.jpg')
# print screen in windows aka screenshot
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment