简体   繁体   中英

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/ , 在此处输入图片说明

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.

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