Version: 1.0

Posted: 2007-11-01

Build Requirements: Mac OS X 10.5, Xcode 3.0

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“SonOfGrab.zip”, 168.5K)
Download Sample (“SonOfGrab.dmg”, 239.1K)



Description

Shows how to use the new CGWindow API to get images of arbitrary sets of windows, including images of the current contents of the screen.

If you need to support Mac OS X 10.4, then you may wish use the techniques demonstrated in OpenGLScreenSnapshot <http://developer.apple.com/samplecode/OpenGLScreenSnapshot/index.html> or OpenGLScreenCapture <http://developer.apple.com/samplecode/OpenGLScreenCapture/index.html>.

Document Revision History

Date Notes
2007-11-01Shows how to use the new CGWindow to get window images from the Window Server.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.