bitmapInfo
Returns the bitmap information for a bitmap image.
Declaration
var bitmapInfo: CGBitmapInfo { get }Discussion
This function returns a constant that specifies:
The type of bitmap data—floating point or integer. You use the constant floatComponents to extract this information.
Whether an alpha channel is in the data, and if so, how the alpha data is stored. You use the constant alphaInfoMask to extract the alpha information. Alpha information is specified as one of the constants listed in CGImageAlphaInfo.
You can extract the alpha information