Custom Composite Operators?
Custom Composite Operators?
- Subject: Custom Composite Operators?
- From: "Joseph M Striedl" <email@hidden>
- Date: Sun, 1 Aug 2004 14:51:04 -0500
Hello list!
I posted a similiar thread to this once a while back, but I was a bit wordy
and didn't get much of a response. So here's the condensed version,
hopefully someone can help me out.
Is there a way to define custom Composite Operators? (Such as the exisiting
composite operators of CompositeSourceOver, CompositePlusDarker,
CompositePlus Lighter,etc.)
As far as I can tell these simply define an equation that is applied to each
pixel of a destination image from the exisiting image and the new source
image. (i.e. CompositePlusLighter simply adds the pixel component values of
the existing image and the source image together and creates a result pixel
with the sum.)
I am hoping to integrate into my app the ability to mimic some
Photoshop-esque layering techniques. (such as Hard Light and Soft Light) but
would need more control over the Composite Operators than I currently have.
I am fairly new to Cocoa, so if I'm missing something obvious, I apologize.
As a side note, I have tried setting up a 'for' loop to go through each
pixel of the image and apply a custom equation to the components, but that
takes a long time compared to the Composite Operators, especially given the
size of the images I am working with. (around 31" x 21" @ 200 dpi...about
26M pixels)
Thanks in advance everyone!
_______________________________________________
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.