• 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: NSImage vs. NSBitmapImageRep color differences?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage vs. NSBitmapImageRep color differences?


  • Subject: Re: NSImage vs. NSBitmapImageRep color differences?
  • From: Marcel Weiher <email@hidden>
  • Date: Mon, 30 Jun 2003 23:44:12 +0200

On Monday, June 30, 2003, at 05:10 Uhr, Christopher Nagel wrote:

I am using an NSImage to create an OpenGL texture but I'm getting color differences depending on how I do it. Using an NSBitmapImageRep yields the correct image, whereas using [NSImage TIFFRepresentation] yields a yellow-hued image. --Yet NSBitmapImageRep is initialized with TIFFRepresentation.

I was trying to avoid the overhead of creating the NSBitmapImageRep, just for kicks.

Overhead of what kind? Generally, it is NSImage that adds overhead, NSBitmapImageRep is the 'correct' low level / direct representation of bitmap images. NSImage is a kind of coordinating wrapper class that often does unexpected things, such as rendering the data to a cache, which may involve ColorSync, for example.

Marcel

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSImage vs. NSBitmapImageRep color differences? (From: Christopher Nagel <email@hidden>)

  • Prev by Date: Stumped by greyed out check syntax widget in PB.
  • Next by Date: Follow-up to "Sigbus on exit for NSStatusItem app"
  • Previous by thread: Re: NSImage vs. NSBitmapImageRep color differences?
  • Next by thread: How to get energy saving options?
  • Index(es):
    • Date
    • Thread