1

I have a UIImage. I need to find out its alpha value. Can someone explain it to me in detail, providing links to any references and also source code of how to go about this. Please don't provide answers for finding out the alpha of the UIImageView because I do NOT need that. Thanks in advance

4

1 回答 1

2

您必须获得CGImageRef。一旦你有了它,你可以使用CGImageGetAlphaInfo方法返回图像的 alpha 通道信息。

于 2013-04-10T11:08:34.857 回答