Re: Simulate Photoshop's "Overlay" compositing method
Re: Simulate Photoshop's "Overlay" compositing method
- Subject: Re: Simulate Photoshop's "Overlay" compositing method
- From: Ricky Sharp <email@hidden>
- Date: Wed, 6 Jul 2005 22:14:37 -0500
On Jul 6, 2005, at 4:09 PM, adam baker wrote:
I am just wondering if there is a convenient (read: easy, fast,
etc.) way of simulating Adobe Photoshop's "Overlay" layer
compositing mode. This would essentially be used to tint images.
Whatever solution exists would have to work in Panther as well as
later versions of Mac OS X, so anything that's CI-only is out :-/
I'll assume you have an NSImage you're starting with? If so, render
the image, set an appropriate tint color and use
NSRectFillUsingOperation to fill a particular area.
For example, set a color with a low alpha value and use the
NSCompositeSourceOver operation with NSRectFillUsingOperation.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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