Re: OR compositing operation?
Re: OR compositing operation?
- Subject: Re: OR compositing operation?
- From: David Duncan <email@hidden>
- Date: Tue, 22 Sep 2009 09:23:37 -0700
On Sep 22, 2009, at 6:22 AM, Oleg Krupnov wrote:
Hi,
I'd like to draw in a graphics context in such a compositing mode:
R = MAX(S, D)
i.e. out of two colors (source and destination), the maximum color
(channel-wise) was chosen. This is basically equivalent to ORing the
colors.
This is the Lighten blend mode (kCGBlendModeLighten). There doesn't
appear to be a corresponding NS composting mode, and I'm not sure why,
but you can easily get a CGContext from an NSGraphicsContext by asking
it for its graphicsPort, so this shouldn't be hard to integrate.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden