8b color NSBitMapImageReps--no such thing?
8b color NSBitMapImageReps--no such thing?
- Subject: 8b color NSBitMapImageReps--no such thing?
- From: Colin Klipsch <email@hidden>
- Date: Fri, 14 Jun 2002 21:23:44 -0400
Greetings.
A co-developer and I have been trying to create a custom view class,
descended from NSView, that displays an 8-bit color NSBitMapImageRep --
that is, something much like an 8-bit GWorld under the old MacOS, and
with
a color palette. We're about to conclude that this is impossible, at
least
under the current MacOS X.1.
We have tried every seemingly sensible combination of arguments to
'initWithBitmapDataPlanes' (method of NSBitMapImageRep), but with no joy.
At runtime, we always get this message in the PB log window:
Inconsistent set of values to create NSBitmapImageRep
We /are/ able to create NSBitMapImageReps of two other types: 8-bit
grayscale
and 32-bit RGB. (And, these display as expected, so the NSView subclass
is
alright.) It's just 8-bit color BitmapReps that seem unattainable.
Is this in fact the case? Is it something likely to be fixed in the
Jaguar
release, or do we have to work around this?
(Apologies if this is in the documentation somewhere, and I missed it.)
-- Colin K.
_______________________________________________
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.