Compositing to custom view in Cocoa
Compositing to custom view in Cocoa
- Subject: Compositing to custom view in Cocoa
- From: Kenny Millar <email@hidden>
- Date: Fri, 30 Jun 2006 12:56:08 +0100
Hi everyone.
I'm still struggling to find out how to replace colors in an image,
before I draw it to the screen.
Basically I have a black and white image, as an image resource in my
bundle, and subsequently as an NSImage in my app.
When I draw it in my custom view, I'd like to replace all the 'white'
pixels with my current background color, and all the black pixels
with a specific fore-ground color.
I've been all through the NSImage and NSView docs, but can't seem to
come close to this.
For an example of what I'm doing look at http://www.kmillar.co.uk/mac/
macstuff.html
Thanks in advance everyone.
-Kenny
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden