是否可以使用ios中的其他图像进行洪水填充图像?

时间:2014-05-22 05:40:09

标签: ios image-processing

我有这个例子https://github.com/Chintan-Dave/UIImageScanlineFloodfill 并阅读这篇文章:UIImage fill transparent part with another image

但没有得到结果!!

我有一张图片。在此图像中,当我们触摸该图像的任何部分时,用另一个图像而不是颜色填充该部分。

所以,如果有任何人有任何想法或例子,请帮助我。

我尝试使用

imageView.newcolor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"pattern4.png"]];

但图像填充为黑色。

我想要这种类型的图像,在洪水填充示例上面只填充图像中的单色,但我想填充图案或下面的其他图像。

img

0 个答案:

没有答案
相关问题