UIGraphics

作者: 风冰武 | 来源:发表于2019-01-16 09:54 被阅读0次
    //返回当前图形上下文                    17行
    CGContextRef UIGraphicsGetCurrentContext(void);
    
    //创建基于位图的图形上下文并使其成为当前上下文  33行
    //参数1: 新位图上下文的大小(这表示UIGraphicsGetImageFromCurrentImageContext)函数返回图像的大小
    void UIGraphicsBeginImageContext(CGSize size);
    
    //返回基于当前位图的图形上下文的内容图像          35行
    UIImage* UIGraphicsGetImageFromCurrentImageContext(void);
    
    //从堆栈顶部移除当前基于位图的图形上下文    36行
    //备注: 可以使用这个函数来清理由UIGraphicsBeginImageContext函数放置的绘图环境, 并从堆栈顶部删除相应的基于位图的图形上下文. 如果当前上下文不是使用UIGraphicsBeginImageContext函数创建的, 那么这个函数什么也不做;
    void UIGraphicsEndImageContext(void); 
    
    
    
    
    

    相关文章

      网友评论

        本文标题:UIGraphics

        本文链接:https://www.haomeiwen.com/subject/qmspdqtx.html