• 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
NSImage Colour Table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage Colour Table


  • Subject: NSImage Colour Table
  • From: Tim McCarthy <email@hidden>
  • Date: Mon, 29 Jul 2002 02:04:42 -0700

Is there a simple way to change the colour palette used when drawing an
NSImage? What I'm trying to do is take a source image, replace every
occurrence of a set of colours with another set of colours, and drawing it
to a view. My current code simply iterates through the bitmap data and does
the replacement, but it's slower than a (insert terrifyingly descriptive
barnyard metaphor here), considering I have about 20 different colours. Is
there an easier way?

TIA.

--
Tim McCarthy, email@hidden
"It's so hard to find good quotes these days."
_______________________________________________
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.

  • Prev by Date: Re: awakeFromNib and action question
  • Next by Date: Re: NSTableView rows and delete key
  • Previous by thread: Re: awakeFromNib and action question
  • Next by thread: code example on NSThread
  • Index(es):
    • Date
    • Thread