简体   繁体   English

图像中的颜色透明

[英]Coloring in images transparent part in imageview

The following images brown color part is transparent ,i tried coloring with the refrence http://www.edumobile.org/iphone/iphone-beginner-tutorials/digital-signature-application-in-iphone/ , 以下图片的棕色部分是透明的,我尝试通过参考http://www.edumobile.org/iphone/iphone-beginner-tutorials/digital-signature-application-in-iphone/进行着色, 在此处输入图片说明

Is it possible to coloring only at transparent part in the uiimage view? 是否可以仅在uiimage视图中的透明部分着色?

一个非常简单的解决方案是在UIImageView后面有一个UIView ,确保UIImageView的背景设置为Clear,然后您就可以通过图像的透明区域查看背景视图中的内容。

Check out Mike Ash's Implementing a Flood Fill and Optimizing Flood Fill . 查看Mike Ash的实施洪水填充优化洪水填充 You'll have to swap out the NSGraphicsContext stuff for CGContext. 您必须将NSGraphicsContext内容换成CGContext。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM