UIImage - > CGImageRef [英] UIImage -> CGImageRef

查看:155
本文介绍了UIImage - > CGImageRef的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个需要将UIImage转换为CGImageRef的Iphone应用程式。我不知道如何做到这一点,并会喜欢一些帮助。我没有使用图片的背景... :)

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... :)

推荐答案

它是简单的 image .CGImage 其中 image 是一个 UIImage 对象。

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

这篇关于UIImage - > CGImageRef的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆