Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying an image with floating point samples




On Jul 27, 2006, at 11:55 AM, Sean Murphy wrote:

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

Yes, the floating-point values are all in the range 0.0-1.0, and the alpha channel is all 1.0.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden


This email sent to email@hidden
References: 
 >Displaying an image with floating point samples (From: Robert Murley <email@hidden>)
 >Re: Displaying an image with floating point samples (From: Sean Murphy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.