简体   繁体   English

在iPhone SDK中淡化UIImage的一部分

[英]Fade part of a UIImage in iphone sdk

My application is mainly based on image processing. 我的应用程序主要基于图像处理。

In my application i want to fade a part of a circular area of UIImage. 在我的应用程序中,我想淡化UIImage圆形区域的一部分。 The circle can be draggable any where on the image. 该圆圈可以在图像上的任何位置拖动。

Please tell me is it possible to fade a part of the image. 请告诉我是否有可能使图像的一部分褪色。 If yes can any one give some idea. 如果是,任何人都可以提出想法。 Thanks in advance. 提前致谢。

If you want to do this the easy way. 如果您想这样做,很简单。 Put 2 UIImageView s on top of eachother. 将2个UIImageView放在彼此的顶部。 And add a (round) mask to the upper view: https://stackoverflow.com/a/7228648/696440 并在上方视图中添加(圆形)蒙版: https//stackoverflow.com/a/7228648/696440

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

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