• 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
Re: Using image as a mask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using image as a mask


  • Subject: Re: Using image as a mask
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 17 Dec 2002 11:08:39 -0800

On Tuesday, December 17, 2002, at 06:04 AM, email@hidden wrote:

What compositing action do i need to do to use a black/white tiff as a
mask for what is below it ala alpha Channels.

Off the top of my head, I believe NSCompositeSourceIn is the one you want. If you download the "Tinted Image" sample from

http://developer.apple.com/samplecode/Sample_Code/Cocoa/Tinted_Image.htm

you can try any combination of image and color compositing. If you want to try out all the compositing modes between two images, use the /Developer/Examples/AppKit/CompositeLab project.

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: spurious Mountain View and Redwood City
  • Next by Date: Re: KeyDown Events in NSImageView Subclass?
  • Previous by thread: Using image as a mask
  • Next by thread: Need some help with SmallSockets/Networking
  • Index(es):
    • Date
    • Thread