• 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
Masking an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Masking an NSImage
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Self-scheduling threading
  • Next by Date: Re: Self-scheduling threading
  • Previous by thread: Crash with SearchKit
  • Next by thread: Re: Masking an NSImage
  • Index(es):
    • Date
    • Thread