• 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
How to invert clip?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to invert clip?


  • Subject: How to invert clip?
  • From: Joseph Kelly <email@hidden>
  • Date: Mon, 12 Jun 2006 16:30:45 -0700

A newbie question:

I would like to set the current graphics context clip area to exclude from drawing the union of an arbitrary number of intersecting rectangles. I've used NSBezierPath to build a path of rectangles, and I would like to "invert" this (in the Photoshop sense of the word) and use it as my clip -- I can't find a method to do this. I've tried changing the winding rule to even-odd, but this fails for sub- intersections, etc. Any ideas?

I.e. In the old days I would've accomplished this by creating a region spanning the entire view and then subtracting rectangular chunks from it. Is there anything similar in Quartz?

Thanks,

Joe K.


_______________________________________________ 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
  • Prev by Date: [solved] Re: NSTreeController woes... NSZombie at doc closed
  • Next by Date: Re: Apple Data Plotting Framework
  • Previous by thread: Re: Freeze Dried Objects/Archiving
  • Next by thread: Routing Information
  • Index(es):
    • Date
    • Thread