Re: How do you fill an NSBezierPath with transparent color?
Re: How do you fill an NSBezierPath with transparent color?
- Subject: Re: How do you fill an NSBezierPath with transparent color?
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 27 Sep 2005 20:31:53 -0700
On Sep 27, 2005, at 8:15 PM, Brian O'Brien wrote:
I've seen post were you can clear a NSBitmapImageRep using
NSFillRect having set NSColor to ClearColor.
However I have an NSBezierPath I want to fill with a transparent
clear.
I don't seem to be able to do this. I either get solid black or
solid white with no transparency regardless of the alpha value
Set the color you want, then send
[[NSGraphicsContext currentContext] setCompositingOperation:
NSCompositeSourceOver];
then send a -fill message to the path object.
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
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