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/ ,
Is it possible to coloring only at transparent part in the uiimage view?
一个非常简单的解决方案是在UIImageView
后面有一个UIView
,确保UIImageView
的背景设置为Clear,然后您就可以通过图像的透明区域查看背景视图中的内容。
Check out Mike Ash's Implementing a Flood Fill and Optimizing Flood Fill . You'll have to swap out the NSGraphicsContext stuff for CGContext.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.