Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSImage vs. NSBitmapImageRep color differences?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage vs. NSBitmapImageRep color differences?



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>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.