Not Recommended Documentclose button

Important: The information in this document is Not Recommended and should not be used for new development.

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

Version: 1.0

Posted: 2003-01-14

Build Requirements: Mac OS X 10.2

Runtime Requirements: Mac OS X 10.2

View Source Code:

Download Sample (“CGDrawPicture.zip”, 342.2K)
Download Sample (“CGDrawPicture.dmg”, 448.9K)



Description

CGDrawPicture is a sample program using Carbon on MacOS X which can view PICT files. PICT files can be dragged onto it or a file of type 'PICT' can be opened in the Open dialog. Two windows appear for each picture opened in the application. One window is the picture drawing with QuickDraw's DrawPicture routine. The second window is the picture drawn using QDPictDrawToCGContext to render QuickDraw pictures into a Quartz CGContextRef. Keywords: PICT DrawPicture QuickDraw QDPictDrawToCGContext Quartz CGContextRef

Document Revision History

Date Notes
2003-01-14Shows how to use the QDPictDrawToCGContext API.

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.