【问题标题】:I want to exchange a particular color inside an image with another color. Is there any possible way?我想用另一种颜色交换图像中的特定颜色。有没有可能的方法?
【发布时间】:2011-06-20 14:07:02
【问题描述】:

我有一张有多种颜色的图片。

我想用我预先决定的替代颜色更改特定颜色。

有没有算法可以修改图片并保存?

感谢您的帮助。

非常感谢。

【问题讨论】:

  • 这是需要在代码中完成的事情吗?

标签: iphone uiimageview uiimage cocos2d-iphone uicolor


【解决方案1】:

查看此问题的选定答案:

How to make one color transparent on a UIImage?

它还显示将红色像素变为绿色,这适用于您的问题。

【讨论】:

    【解决方案2】:

    肯定是的。

    看这里 Bitmap Images and Image Masks

    在该页面中查找:“Masking with color”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-19
      • 2012-08-24
      • 1970-01-01
      • 2016-06-17
      • 2013-03-01
      • 1970-01-01
      • 2017-12-12
      相关资源
      最近更新 更多