One Quickie


Clipping to a CGPath (Graphics->General)
    CGPathRef border = ... get a path from somewhere;

    CGContextRef context = UIGraphicsGetCurrentContext ();

    CGContextSaveGState (context); {
        CGContextAddPath (context, border);
        CGContextClip (context);

        // draw draw draw

    } CGContextRestoreGState (context);



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com