ios 抓图实现
来源:互联网 发布:mindmap mac 编辑:程序博客网 时间:2024/06/05 00:20
- //获得屏幕图像
- -
(UIImage *)imageFromView: (UIView *) theView - {
-
-
UIGraphicsBeginImageCont ext(theView.frame.size); -
CGContextRef = UIGraphicsGetCurrentContext (); -
[theView.layer renderInContext:context]; -
UIImage * = UIGraphicsGetImageFromCurrentImageContext (); -
UIGraphicsEndImageContex t(); -
-
return theImage; - }
-
- //获得某个范围内的屏幕图像
- -
(UIImage *)imageFromView: (UIView *) theView atFrame:(CGRect)r - {
-
UIGraphicsBeginImageCont ext(theView.frame.size); -
CGContextRef = UIGraphicsGetCurrentContext (); -
CGContextSaveGState(context); -
UIRectClip(r); -
[theView.layer renderInContext:context]; -
UIImage * = UIGraphicsGetImageFromCurrentImageContext (); -
UIGraphicsEndImageContex t(); -
-
return theImage;//[self getImageAreaFromImage:theImage atFrame:r]; - }
0 0
- ios 抓图实现
- ios 抓图实现
- 用mediaplay实现抓图
- DirectShow实现抓图(Delphi)
- 用mediaplay实现抓图
- JAVA实现屏幕抓图
- iOS系统如何实现网络数据抓包
- 根据URL实现网上抓图
- 保存抓图的简单实现
- 保存抓图的简单实现
- c# 语句实现屏幕抓图
- JAVA实现屏幕抓图 远程桌面控制
- C#实现抓图功能,保存图片
- Java实现屏幕抓图,控制远程桌面
- 保存抓图的简单实现 收藏
- JAVA实现屏幕抓图 远程桌面控制
- Java实现简单的屏幕抓图
- Java实现屏幕抓图,控制远程桌面
- 隐藏对话框和单文档窗体
- HP-UX使用swinstall安装时报错
- java中十进制转二进制转换函数
- git gitignore文件配置
- Linux下防火墙开启相关端口及查看已开启端口
- ios 抓图实现
- html5+Jquery mobile+phoneGAP开发混合程序实战记录(及疑难)
- item15: 在资源管理类中提供对原始资源的访问
- 慢下来的时光
- 在Windows下配置安装OMNeT++ 4.X
- BNUOJ 10803 F. 起床的烦恼
- poj 1953
- Mysql explain用法和性能分析
- POJ 2774 Long Long Message 求两个串最长公共子串(后缀数组)