Re: Setting a color in a NSBitmapImageRep to white or black
Re: Setting a color in a NSBitmapImageRep to white or black
- Subject: Re: Setting a color in a NSBitmapImageRep to white or black
- From: John Joyce <email@hidden>
- Date: Fri, 18 Feb 2011 09:53:33 +0900
On Feb 18, 2011, at 9:47 AM, Graham Cox wrote:
>
> On 18/02/2011, at 11:40 AM, John Joyce wrote:
>
>> Why would whiteColor not be RGB?
>
>
> Because it's not. It uses the NSCalibratedWhiteColorSpace, and has two components - the gray level and alpha.
>
> Yes, you can make an RGB colour of white or any shade of gray, but -whiteColor (nor -blackColor or any gray) isn't like that.
>
> --Graham
>
Good to know!
Too bad it's not labeled more informatively.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden