iOS: Applying a RGB filter to a greyscale PNG

后端 未结 3 1388
抹茶落季
抹茶落季 2020-12-14 13:17

I have a greyscale gem top view.

(PNG format, so has alpha component)

3条回答
  •  余生分开走
    2020-12-14 14:13

    The best looking results are going to come from using the gray value to index into a gradient that goes from the darkest to the lightest colors of the desired result. Unfortunately I don't know the specifics of doing that with core graphics.

提交回复
热议问题