RE: Transparency?
RE: Transparency?
- Subject: RE: Transparency?
- From: Glenn Andreas <email@hidden>
- Date: Wed, 21 Apr 2004 11:23:40 -0500
At this point, nothing is in the NSBox. If I remove the NSRectFill
call, I end up with an invisible box.
I just tried the following which also didn't work. The color of the box
is still gray instead of being completely white.
[[NSColor whiteColor] set];
NSRecFill(rect);
[[NSColor colorWithCalibratedWhite:1.0 alpha:0.2] set];
NSRectFill(rect);
Installer uses a Custom View so everything appears to be programmatic.
Isn't 1.0 = black in colorWithCalibratedWhite:alpha:?
colorWithDeviceWhite:alpha: docs say that "in postscript, this color
space corresponds directly to the device-dependant operator setgray"
(and "1.0 setgray" will produce solid black).
So [[NSColor colorWithCalibratedWhite:1.0 alpha:0.2] set] says "solid
black, 20% alpha", which, will produce a gray box.
--
Glenn Andreas email@hidden
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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.