• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Displaying an image with floating point samples
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Displaying an image with floating point samples
      • From: Robert Murley <email@hidden>
References: 
 >Displaying an image with floating point samples (From: Robert Murley <email@hidden>)

  • Prev by Date: AttributedString and HTML - relative to?
  • Next by Date: NSDatePicker delegate
  • Previous by thread: Displaying an image with floating point samples
  • Next by thread: Re: Displaying an image with floating point samples
  • Index(es):
    • Date
    • Thread