[英]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.