• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to clip inside a path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: how to clip inside a path
      • From: Roland King <email@hidden>
References: 
 >how to clip inside a path (From: Roland King <email@hidden>)
 >Re: how to clip inside a path (From: Kyle Sluder <email@hidden>)
 >Re: how to clip inside a path (From: Roland King <email@hidden>)

  • Prev by Date: Re: ARC question
  • Next by Date: Re: ARC question
  • Previous by thread: Re: how to clip inside a path
  • Next by thread: Re: how to clip inside a path
  • Index(es):
    • Date
    • Thread