Re: Using image as a mask
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.