How to invert clip?
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