On 18/02/2011, at 11:40 AM, John Joyce wrote:

> 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.

Also, this is incorrect.

This assumes two things - that colour components have 8 bits and that all bits 
set represent full brightness of the component. Both of these things depend on 
the colour space. Typically, colour components are expressed as a float value 
between 0 and 1.0 relative to the colourspace, and are mapped to the actual 
number of bits per component (modulo colour calibration) in a bitmap internally.

The colour model of Windows 3 (and Colour QuickDraw for that matter) are long 
behind us.

--Graham





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to