• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBitmapImageRep with indexed 8bit source data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSBitmapImageRep with indexed 8bit source data (From: Thomas Herzog <email@hidden>)

  • Prev by Date: Re: Quickly drawing non-antialiased, discrete, pixels
  • Next by Date: Inheriting a problem
  • Previous by thread: NSBitmapImageRep with indexed 8bit source data
  • Next by thread: Re: Ignoring an empty field in the address book (bug?)
  • Index(es):
    • Date
    • Thread