• 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
Compositing to custom view in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Compositing to custom view in Cocoa
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Custom NSButton on toolbar
  • Next by Date: Clearing the key event
  • Previous by thread: Custom NSButton on toolbar
  • Next by thread: Re: Compositing to custom view in Cocoa
  • Index(es):
    • Date
    • Thread