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

s6luwJ0A3I
  • 1,023
  • 1
  • 9
  • 22

1 Answers1

2

You have to obtain a CGImageRef. Once you have it you can use the method CGImageGetAlphaInfo that return the information of the alpha channel of the image.

Pablosproject
  • 1,374
  • 3
  • 13
  • 33