How to .blend(...) an image in 'COLOR' mode?

edited May 2016 in How To...

Hello,

i am currently working on a project that needs to blend an image exaclty in the way photoshop does with the Blend Mode "COLOR". As i read in the documentation in Processing there are only the following blend modes available:

Either BLEND, ADD, SUBTRACT, DARKEST, LIGHTEST, DIFFERENCE, EXCLUSION, MULTIPLY, SCREEN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, DODGE, or BURN

I was hoping that someone maybe already did this before and wrote Image Processing code that i could use.

Here is an example what i attempt to get:

Untitled-1

external link: f.666kb.com/i/cpzb6ox97wy6ilh3n.jpg

Adobe describes this blending mode with following words:

"Color - Result color has luminosity of the underlying color, and hue and saturation of the source color. This blending mode preserves the gray levels in the underlying color. This blending mode is useful for coloring grayscale images and for tinting color images."

(source: helpx.adobe.com/after-effects/using/blending-modes-layer-styles.html)

Can someone help me? Unfortunately for my task i exaclty need this specific mode.

Tagged:

Answers

Sign In or Register to comment.