简体   繁体   English

如何使用Coregraphics移除UIImage背景色并使之透明?

[英]How to remove UIImage Background color and make it transparent using Coregraphics?

在不使用photoshop的情况下,如何使用Coregraphics去除图像背景色并使之透明。

As far as I know you are not able to magically remove a background from a photo. 据我所知,您无法神奇地从照片中删除背景。 How would you know what to remove and what not? 您怎么知道要删除什么,什么不删除? You are, however, able to perform some masking on an image, "transforming" it's shape (read http://iosdevelopertips.com/cocoa/how-to-mask-an-image.html ). 但是,您可以对图像执行某些遮罩,以“改变”其形状(请阅读http://iosdevelopertips.com/cocoa/how-to-mask-an-image.html )。

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

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