Masking an NSImage
Masking an NSImage
- Subject: Masking an NSImage
- From: Todd Yandell <email@hidden>
- Date: Thu, 17 Mar 2005 17:07:09 -0600
Hi,
I'm looking for a way to mask an NSImage using another NSImage.
Normally, I would just use Quartz's compositing modes to do this, but
for that to work, one of the images has to have an alpha channel. What
I'm trying to do is this: take one image (say, a normal, mask-less
JPEG) and mask off parts of that image using another black-and-white
mask image. In short, I want to add an alpha channel to an image that
doesn't already have one. Is there any way to do this in Cocoa/Quartz?
Thanks for your help,
— Todd Yandell
_______________________________________________
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