Re: Displaying an image with floating point samples
Re: Displaying an image with floating point samples
- Subject: Re: Displaying an image with floating point samples
- From: Sean Murphy <email@hidden>
- Date: Thu, 27 Jul 2006 14:55:23 -0400
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden