NSBezierPath compositing
NSBezierPath compositing
- Subject: NSBezierPath compositing
- From: Simon Bovet <email@hidden>
- Date: Wed, 9 Mar 2005 15:05:39 +0100
Is there a way to change the composite operation for a -[NSBezierPath
fill] ? I actually want to erase a non-rectangular portion of an
NSImage.
For rectangular areas, I can of course use:
[myImage lockFocus];
[[NSColor clearColor] set];
NSRectFill(myRect);
/* or
NSRectFillUsingOperation(myRect, NSCompositeCopy); */
[myImage unlockFocus];
What if I want to erase an arbitrary Bezier path? [myBezierPath fill]
won't do anything since it is always using the NSCompositeSourceOver
operation...
Thanks for your help!
Simon
_______________________________________________
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