On Feb 18, 2011, at 9:35 AM, Graham Cox wrote:

> 
> On 18/02/2011, at 8:09 AM, Eric Gorr wrote:
> 
>> So, why can I not use [NSColor whiteColor]?
>> 
>> 
>> I'm sure I'm missing something simple, but what that is, I do not know...
> 
> 
> It may be that the colour has to match the colorspace of the bitmap, though 
> the docs are mute on that. -greenColor is an RGB colour but -whiteColor is a 
> grayscale colour. Perhaps no conversion to the destination space is done.
> 
> You could try using setPixel:atX:y: instead and directly set the bitmap that 
> way, or try converting the source colours to the destination colourspace.
> 
> --Graham

Instead of -whiteColor is it not possible to simply create a color using 255 
a.k.a. FF  for R, G and B respectively?
This is white in RGB.
Why would whiteColor not be RGB?

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to