Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Version 1.0, 2003-01-14
Shows how to manipulate the Quartz 2D Current Transform Matrix (CTM) for image drawing with clipping.
Mac OS X
Mac OS X Mac OS X, Project Builder
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