FROM : Thomas Engelmeier
DATE : Wed Jun 14 16:37:23 2006
On Jun 14, 2006, at 2:15 PM, I. Savant wrote:
> Well ... you're first drawing the whole background with
> +controlDarkShadowColor, then you're drawing atop *that* color with
> an alpha-faded white. What'd you expect when combining those
> colors? :-)
Well, actually, I use NSFrameRect, so that part is correct.
> Also, when trying to inset a rectangle, use NSInsetRect().
Thanks for the advice..
>> [[NSColor colorWithDeviceWhite:1.0 alpha:.3] set];
>> NSRectFill(tRect );
and here was the show stopper - NSRectFill treats the alpha in some
odd way, [NSBezierPath fillRect:tRect]; is the solution..
Regards,
Tom_E
DATE : Wed Jun 14 16:37:23 2006
On Jun 14, 2006, at 2:15 PM, I. Savant wrote:
> Well ... you're first drawing the whole background with
> +controlDarkShadowColor, then you're drawing atop *that* color with
> an alpha-faded white. What'd you expect when combining those
> colors? :-)
Well, actually, I use NSFrameRect, so that part is correct.
> Also, when trying to inset a rectangle, use NSInsetRect().
Thanks for the advice..
>> [[NSColor colorWithDeviceWhite:1.0 alpha:.3] set];
>> NSRectFill(tRect );
and here was the show stopper - NSRectFill treats the alpha in some
odd way, [NSBezierPath fillRect:tRect]; is the solution..
Regards,
Tom_E
| Related mails | Author | Date |
|---|---|---|
| Thomas Engelmeier | Jun 14, 11:23 | |
| I. Savant | Jun 14, 14:15 | |
| Thomas Engelmeier | Jun 14, 16:37 | |
| Uli Kusterer | Jun 14, 17:26 |






Cocoa mail archive

