NSImage Colour Table
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.