Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-10-10

Build Requirements: N/A

Runtime Requirements: Carbon QuickDraw, CarbonLib

View Source Code:

Download Sample (“Snapshot.zip”, 44.1K)
Download Sample (“Snapshot.dmg”, 106.0K)


This program demonstrates how to easily capture the main screen's desktop image into your own window. It simply uses a custom offscreen pixmap with an identical copy of the main device's colortable to store the image. Updated to work with Mac OS X. Fixed a PixMap disposing bug. Updated casts and headers. Updated for the Carbon API. Requirements: QuickDraw, CarbonLib Keywords: CopyBits, Screen Copy, Carbon

Document Revision History

Date Notes
2003-10-10First Version

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.