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

Runtime Requirements: Mac OS X Mac OS X, Project Builder

View Source Code:

Download Sample (“”, 71.6K)
Download Sample (“CTMClip.dmg”, 134.1K)


The CTMClip sample shows how to manipulate the Core Graphics (Quartz 2D) Current Transform Matrix (CTM) for image drawing. It also shows how to use the ClipCGContextToRegion API to make CG's clip path match the clip region from a QuickDraw port. See the companion sample CTMDemo for the same demo without the clipping. Requirements: Mac OS X, Project Builder Keywords: Core Graphics, Quartz 2D, CTM, Current Transform Matrix, CTMDemo, ClipCGContextToRegion, clip path, clip region

Document Revision History

Date Notes
2003-01-14Shows how to manipulate the Quartz 2D Current Transform Matrix (CTM) for image drawing with clipping.

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.