Re: how to clip inside a path
Re: how to clip inside a path
- Subject: Re: how to clip inside a path
- From: Vincent Habchi <email@hidden>
- Date: Mon, 29 Oct 2012 15:38:35 +0100
Le 29 oct. 2012 à 15:26, Roland King <email@hidden> a écrit :
> Doesn't help I'm afraid. If I only have that one, single, path, the even-odd rule returns odd inside the path/circle so it's inside and the non-zero returns either 1 or -1 depending on the order of the control points so either way so that's inside too and in either case they get clipped in, not clipped out. I think I need two paths, one at the boundary of the context and one inside it, but I haven't managed to quite get my head around it.
If you’re drawing on a solid background, you can always – as a kludge – draw everything then fill the inside of your path with the background color, which will give you the same result. Of course, if you are dealing with a stack of CALayers, it might be more difficult to find a workaround like this.
Vincent
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden