在iOS核心图形中,什么是graphicsContext? [英] In iOS Core Graphics, what is a graphicsContext?

查看:66
本文介绍了在iOS核心图形中,什么是graphicsContext?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们这样做时:

CGContextRef ctx = UIGraphicsGetCurrentContext();

ctx到底是什么?显然,这是一个结构。结构在哪里定义?它的成员是什么?

what exactly is ctx? Apparently it's a struct. Where is the struct defined? What are its members?

推荐答案

它是指向结构的指针。该结构是不透明的。只需使用与其连接的功能即可。

It is a pointer to a struct. The struct is opaque. Just use the functions connected with it.

这篇关于在iOS核心图形中,什么是graphicsContext?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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