How to replace color of an image?

后端 未结 3 529
执念已碎
执念已碎 2020-12-30 13:36

I want to replace color of an image. For example turn all blue colors to red without any distortion on shape. When i try this i can swap the colors by iterating every pixel,

3条回答
  •  孤城傲影
    2020-12-30 14:13

    The usual way to do this is to use an RGBImageFilter. See the docs for FilteredImageSource for how to use such a filter.

提交回复
热议问题