• 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: Christopher Nagel <email@hidden>
  • Date: Tue, 1 Jul 2003 12:36:53 -0400

On Monday, June 30, 2003, at 05:44 PM, Marcel Weiher wrote:

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.

Well, I had thought that some of the NSImage overhead was necessary. I'm not sure I can say

[NSBitmapImageRep imageRepWithData:[NSData dataWithContentsOfFile:imageFile]];

and get anything meaningful... But I'll give it a shot.

The overhead I originally meant was creating *another* NSBitmapImageRep when one already existed owned by NSImage. (I'm just playing around, exploring all the options here.)

Thanks,
Chris
_______________________________________________
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.

  • Prev by Date: Re: Cocoa Design Patterns Book and Online Resources?
  • Next by Date: Re: Strong language about Cocoa and Qt.
  • Previous by thread: Re: Strong language about Cocoa and Qt.
  • Next by thread: Help wanted with NSOutlineView and it's data source
  • Index(es):
    • Date
    • Thread