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 Code (“SonOfGrab.zip”, 168.5K)



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.