Re: NSImage vs. NSBitmapImageRep color differences?
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.