Programmatically, how does hue blending work in photoshop? -


in photoshop can set layer's blending mode "hue". if layer is, example, filled blue seems take layer below , makes blue wherever non-whiteish color exists.

i'm wondering it's doing though. if have background layer pixel aarrggbb , layer on top of set blend mode "hue" , there's pixel aarrggbb on layer, how 2 values combined give result see?

it doesn't drop rrggbb layer below. if did it'd color white , black well. wouldn't allow color variations through.

if background pixel 0xff00ff00 , corresponding hue layer pixel 0xff0000ff i'm assuming end result 0xff0000ff because ff blue replaces ff green. but, if background pixel 0x55112233 , hue layer pixel 0xff0000ff, how come shade of blue comes with?

the reason ask i'd take various images , change hue of image programmatically in app. rather storing 8 different versions of same image different colors, i'd store 1 image , color needed.

i found algorithm convert rgb hsv here: http://www.cs.rit.edu/~ncs/color/t_convert.html

of course, @ bottom of page mentions java color object has methods converting between rgb , hsv, used that.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -