CGContextClip Works with Rect Paths, but not with Arc Paths
CGContextClip Works with Rect Paths, but not with Arc Paths
- Subject: CGContextClip Works with Rect Paths, but not with Arc Paths
- From: "Jordan Evans" <email@hidden>
- Date: Sun, 5 Nov 2006 14:25:35 -0800
When I use the the exerpt code below with CGContextAddRect commented
in and I draw outside that rect, the drawing is clipped as I expect.
But, it is not clipped when I comment in the CGContextAddArc. Anyone
know what is going on?
CGContextBeginPath (context);
// CGContextAddRect(context, CGRectMake(0,0,100,100));
CGContextAddArc( context, 0, 0, 200, 0.0, 3.14, NO);
CGContextClosePath (context);
CGContextEOClip (context);
// Drawing outside the clipped path here is only clipped with
the rect vs. the arc clip.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden