Re: Transparency?
Re: Transparency?
- Subject: Re: Transparency?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 27 Apr 2004 23:41:54 +0200
At 10:19 Uhr -0400 21.04.2004, Huyler, Christopher M wrote:
- (void) drawRect:(NSRect) frame
{
NSRect rect=[self frame];
[super drawRect:frame];
rect.origin=NSMakePoint(1,1);
rect.size.width-=2;
rect.size.height-=2;
[[NSColor colorWithCalibratedWhite:1.0 alpha:0.9] set ];
NSRectFill(rect);
}
IIRC NSRectFill() "assigns" the current color to the pixels of a
rect, replacing anything behind them. What you want to do instead is:
[[NSBezierPath bezierPathWithRect: rect] fill];
(Warning, 11:41pm reply, nonsense level potentially increasing by the minute)
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.
References: | |
| >Transparency? (From: "Huyler, Christopher M" <email@hidden>) |