Could anyone tell me why UIImage.ciimage is null

后端 未结 1 1811
抹茶落季
抹茶落季 2021-01-01 15:17

I found that in IOS UIImage can change to CIImage.and there is a property CIImage in UIImage. and when i use the UIImage,UIImage object is

相关标签:
1条回答
  • 2021-01-01 16:00

    It is because this UIImage is not in fact a CIImage. In other words, UIImage's CIImage is not nil only if the UIImage is backed by a CIImage already (e.g. because it was generated by imageWithCIImage:). You can't use this to magically turn the UIImage into a CIImage, as you seem to be hoping to do.

    The documentation is actually pretty clear on this. Always worth a read.

    0 讨论(0)
提交回复
热议问题