0

I need to modify any image to get these results:

  • White color has to be the color I specify, I don't want to keep source image's lightness.
  • Rest of colors have to be tinted similar to Photoshop's "Color" layer blend mode. That is, I need them to look like if the source image was grey-scaled and then a color filter applied, even for non-greyscale images.

I am using the UIImage + Colorize.swift functions. The tint(tintColor: UIColor) -> UIImage function works as I need for non-white colors, but white color remains white. How could I get the results I need?

Rachel Gallen
  • 27,943
  • 21
  • 72
  • 81
AppsDev
  • 12,319
  • 23
  • 93
  • 186
  • Belongs on https://graphicdesign.stackexchange.com/ or perhaps superuser/ other stackexchange site. Not stackoverflow.. – Rachel Gallen May 22 '17 at 09:17
  • @RachelGallen I need an iOS-specific solution, this is not the correct place then? – AppsDev May 22 '17 at 09:21
  • consider apple.stackexchange.com There's also webapps.stackexchange.com which has an ios tag, but i think the apple one would be better – Rachel Gallen May 22 '17 at 10:15
  • @RachelGallen If AppsDev wanted to know how to do this with PhotoShop I'd understand your objection. Being pretty new here myself and this being a question about UIImage/CGImage/Core Graphics, I'd like to know why Stack Overflow is not the right place to ask this question. – thm May 22 '17 at 12:40
  • @thm it's not an objection, can I be clear about that, it just looked like it would get a better response on a specialised SE website. – Rachel Gallen May 22 '17 at 13:15
  • @RachelGallen Thanks for clarifying, just wanted to know so I wouldn't ask questions on the wrong site. – thm May 22 '17 at 13:31
  • @AppsDev Could you show two example pictures (original and desired result) of what you want to achieve? – thm May 22 '17 at 13:32

0 Answers0