Implicit conversion from enumeration type 'enum CGImageAlphaInfo' to different enumeration type 'CGBitmapinfo' (aka) 'enum CGBitmapInfo')

The constants for specifying the alpha channel information are declared with the CGImageAlphaInfo type but can be passed to this parameter safely.

Just use a cast to suppress the warning:

CGBitmapInfo bitmapInfo =(CGBitmapInfo) kBitmapInfo;

posted on   小浪鼓  阅读(2153)  评论(0编辑  收藏  举报

导航

点击右上角即可分享
微信分享提示