Re: NSBitmapImageRep with indexed 8bit source data
Re: NSBitmapImageRep with indexed 8bit source data
- Subject: Re: NSBitmapImageRep with indexed 8bit source data
- From: Andrew Platzer <email@hidden>
- Date: Mon, 6 Jan 2003 16:48:30 -0800
On Monday, January 6, 2003, at 6:36, Thomas Herzog wrote:
I'm trying to implement a custom NSImageRep subclass to load and
display .cel image files, which come in multiple variants, from
indexed 4-bit colors to 32-bit argb.. I've already successfully
implemented handling of 32-bit variants by using NSBitmapImageRep, but
how can I create an NSBitmapImageRep with indexed 8-bit source data?
(raw 8-bit image file & custom color palette) This was(/is) possible
with Carbon using GWorlds and palettes, but how can I load and draw
this kind of images in Cocoa? I'm lost...
Currently, Cocoa expands any indexed image it reads into direct RGB.
Support for reading and writing indexed images is planned for the
future. For now, when you read colour table based images, you will need
to convert them to direct RGB.
Andrew Platzer
Application Frameworks
Apple Computer
_______________________________________________
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.