On Jul 27, 2006, at 2:04 PM, Robert Murley wrote:
I have an NSBitmapImageRep with floating-point data samples. When I
attempt to display it, I get all white. Using the same code with 8-
bit integer samples works fine. Could anyone enlighten me as to
what I am doing wrong?
Hi Robert,
This is probably the most obvious solution (sorry if you're already
aware of it!). The fact that the image turns out all white could
indicate that the floating point data samples you're supplying are
all greater-than 1.0. Usually, when dealing with images and color
in Cocoa, floating point values have the range of 0.0-1.0, rather
than simply the integer value with a more precise decimal value
appended.
-Sean