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