Re: [NSColor clearColor] and NSBezierPath: not compatible?
Re: [NSColor clearColor] and NSBezierPath: not compatible?
- Subject: Re: [NSColor clearColor] and NSBezierPath: not compatible?
- From: "Timothy J. Wood" <email@hidden>
- Date: Wed, 17 Aug 2005 08:23:26 -0700
On Aug 17, 2005, at 8:10 AM, Stephane Sudre wrote:
When I fill it with the clearColor, no drawing operation is
performed, the drawings behind the rounded rectangle are still there.
This seems correct if you you filled with clear in s-over mode.
You probably want copy mode instead of s-over.
I'll certainly admit that it seems strange if +fillRect: and -fill
use different compositing modes, but I don't see anything in the
documentation about equivalence of [NSBezierPath fillRect: rect] and
[[NSBezierPath bezierPathWithRect: rect] fill.
I typically use the CG primitives for this; you might be able to
set the compositing mode that NSBezierPath uses with -
[NSGraphicsContext setCompositingOperation:] (10.4 API).
-tim
_______________________________________________
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