iOS 控件详解

UIGraphics

2019-01-16  本文已影响0人  风冰武
//返回当前图形上下文                    17行
CGContextRef UIGraphicsGetCurrentContext(void);

//创建基于位图的图形上下文并使其成为当前上下文  33行
//参数1: 新位图上下文的大小(这表示UIGraphicsGetImageFromCurrentImageContext)函数返回图像的大小
void UIGraphicsBeginImageContext(CGSize size);

//返回基于当前位图的图形上下文的内容图像          35行
UIImage* UIGraphicsGetImageFromCurrentImageContext(void);

//从堆栈顶部移除当前基于位图的图形上下文    36行
//备注: 可以使用这个函数来清理由UIGraphicsBeginImageContext函数放置的绘图环境, 并从堆栈顶部删除相应的基于位图的图形上下文. 如果当前上下文不是使用UIGraphicsBeginImageContext函数创建的, 那么这个函数什么也不做;
void UIGraphicsEndImageContext(void); 




上一篇下一篇

猜你喜欢

热点阅读