I'm trying to tint an image. But this time a more tricky variant.
The image has got
saturation
,brightness
andalpha
information (sadly as RGBA), which should not be discarded (saturation for black shadow).The tint color has got
hue
,saturation
,brightness
andalpha
information (sadly also as RGBA) which also should not be discarded.As I imagine it, each HSBA component (except to hue) should be multiplied to have full control about the tinted image - e.g. when I provide a less bright tint color, the image brightness should also be scaled down.
So, something like:
(h,s,b,a) = (h_tint, s_tint*s_image, b_tint*b_image, a_tint*a_image)
I searched the internet, but this procedure does not seem to be common, even when ignoring the alpha channel (or even the saturation too) for the moment.
I'd need it in iOS, but I didn't even find such a layer blend mode in Photoshop. I've tried (in iOS and if existing in Photoshop):
Multiply
- does not look at all like what I wantDarken
- not reallyColor Dodge
- at least somewhat usable, but not really rightPlus Darker
- also ok, but not reallyColor
/Luminosity
/Hue
- these would have been my favourites, but they discard the tint's saturation and brightness values instead of multiplicating them. But maybe if there is a way of applying the missing saturation and brightness afterwards?
So, has the described blend mode a common name / would it make sense?
Any ideas on how to do this in iOS? (I'm aware of the Apple Developer Guide and Reference, and the stackoverflow questions about tinting and overlaying)