UIImage -> CGImageRef

前端 未结 3 1247
有刺的猬
有刺的猬 2021-01-31 07:55

I\'m building an Iphone app that needs to convert a UIImage to a CGImageRef. I have no idea how to do this and would love some help. I have no background in working with images.

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 08:24

    It is as simple as image.CGImage where image is a UIImage object.

提交回复
热议问题