views:

41

answers:

1

Hi, Is it possible for me to take use an image as a green screen type thing like in photo booth where it takes the background out?

+2  A: 

Yes, although exactly what you mean by “green screen” will affect the specific answer. Chroma-keying will require a custom CIFilter, as I don't believe Core Image comes with such a filter and I know NSImage by itself doesn't support it.

Peter Hosey
Well I don't necessarily mean nsimage, i don't care by what means it is. I mean that I can take an image, add an image on top of it, and then take the first image out so I only get the image that was added on top of it.
Alex Zielenski
Yes, you'll have to dig into Core Animation and such.
Matt Williamson
Not Core Animation, but Core Image. Unless you mean you just want to completely replace the previous image with the new image; if so, you can do that with NSImage and the `NSCompositeCopy` compositing operator. But that doesn't sound like what you described in your question.
Peter Hosey