Re: Transparency? SOLVED
Re: Transparency? SOLVED
- Subject: Re: Transparency? SOLVED
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 21 Apr 2004 19:08:47 +0200
NSRectFillUsingOperation(NSRect aRect, NSCompositingOperation op);
?
On 21 avr. 2004, at 18:10, Huyler, Christopher M wrote:
Thanks! I would have run into the isOpaque problem sooner or later and
the it hadn't even crossed my mind...
Good news, I found a solution...
NSRectFill() apparently ignores the alpha value. A work around is to
use a NSBeizerPath like so:
NSBezierPath *bp = [NSBeizerPath bezierPathWithRect:rect];
[[NSColor colorWithCalibratedWhite:1.0 alpha:0.5] set];
[bp fill];
Thanks everyone for your help.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.