UIimage 剪切
来源:互联网 发布:淘宝室内设计师招聘 编辑:程序博客网 时间:2024/04/29 15:57
-(UIImage*)getSubImage:(CGRect)rect cgImage:(UIImage*)CGImage{ CGImageRef subImageRef = CGImageCreateWithImageInRect(CGImage.CGImage, rect); CGRect smallBounds = CGRectMake(0, 0, CGImageGetWidth(subImageRef), CGImageGetHeight(subImageRef)); UIGraphicsBeginImageContext(smallBounds.size); CGContextRef context = UIGraphicsGetCurrentContext(); CGContextDrawImage(context, smallBounds, subImageRef); UIImage* smallImage = [UIImage imageWithCGImage:subImageRef]; UIGraphicsEndImageContext(); return smallImage;}
0 0
- UIimage 剪切
- UIImage剪切图片为自定义大小
- UIImage非正方形图片如何剪切为正方形
- IOS:UIImage的剪切,尺寸缩小、压缩、添加水印
- UIImage非正方形图片如何剪切为正方形
- UIImage非正方形图片如何剪切为正方形
- 剪切
- 剪切
- [转载]UIImage的剪切,尺寸缩小、压缩、添加水印
- 如何用UIimage剪切图片,让我从一张大图上获取图片的一部分!
- iOS开发技巧之:UIImage的剪切,尺寸缩小、压缩、添加水印
- uiimage
- UIImage
- UIImage
- UIImage
- UIImage
- UIImage
- UIImage
- linux学习笔记--nice命令
- vue中动态绑定表单元素的属性
- Android 学习之 Json解析 JSONStringer类
- 第十五周项目1(2)--验证直接插入排序算法
- Oracle 数据库体系结构
- UIimage 剪切
- (一) Eclipse创建Maven多模块项目
- MySQL 中的数据类型介绍
- OpenMP并行程序设计——for循环并行化详解
- Java多线程编程
- C++三种容器:list、vector和deque的区别
- Visual Studio 2010 插件之Resharper
- Java的面向对象
- Oracle数据库学习笔记一