• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting a color in a NSBitmapImageRep to white or black
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting a color in a NSBitmapImageRep to white or black


  • Subject: Re: Setting a color in a NSBitmapImageRep to white or black
  • From: Graham Cox <email@hidden>
  • Date: Fri, 18 Feb 2011 11:47:05 +1100

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


_______________________________________________

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

  • Follow-Ups:
    • Re: Setting a color in a NSBitmapImageRep to white or black
      • From: John Joyce <email@hidden>
References: 
 >Setting a color in a NSBitmapImageRep to white or black (From: Eric Gorr <email@hidden>)
 >Re: Setting a color in a NSBitmapImageRep to white or black (From: Graham Cox <email@hidden>)
 >Re: Setting a color in a NSBitmapImageRep to white or black (From: John Joyce <email@hidden>)

  • Prev by Date: Re: Setting a color in a NSBitmapImageRep to white or black
  • Next by Date: Re: Setting a color in a NSBitmapImageRep to white or black
  • Previous by thread: Re: Setting a color in a NSBitmapImageRep to white or black
  • Next by thread: Re: Setting a color in a NSBitmapImageRep to white or black
  • Index(es):
    • Date
    • Thread