UIImage方法(imageWithCGImage: scale: orientation:)
来源:互联网 发布:8051单片机工作原理 编辑:程序博客网 时间:2024/05/21 14:59
+ (UIImage *)imageWithCGImage:(CGImageRef)cgImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation
作用:对UIImage进行放大旋转
参数1: cgImage = image.CGImage image为原始图片
参数2:scale 原始图片放大倍数
参数3:orientation 即UIImage的imageOrientation属性 控制image的绘制方向
typedef NS_ENUM(NSInteger, UIImageOrientation) {
UIImageOrientationUp, // default orientation
UIImageOrientationDown, // 180 deg rotation UIImageOrientationLeft, // 90 deg CCW UIImageOrientationRight, // 90 deg CW
UIImageOrientationUpMirrored, // as above but image mirrored along other axis.
horizontal flip UIImageOrientationDownMirrored, // horizontal flip UIImageOrientationLeftMirrored, // vertical flip UIImageOrientationRightMirrored, // vertical flip };
- UIImage方法(imageWithCGImage: scale: orientation:)
- OC--[UIImage imageWithCGImage:]-----Swfit--UIImage.init(CGImage:)
- UIImage的scale
- UIImage的scale是什么?
- UIImage的scale
- UIImage的scale是什么?
- UIImage from ALAsset: getting the right orientation
- UIImage的size和scale属性
- iOS-UIImage切圆角方法(UIImage make round corner image)
- iOS 相册图片,相机图片被旋转问题 uiimage orientation
- UIImage处理方法(缩放、自定义大小)
- 姿态(Orientation)
- orientation
- scale image的方法
- iphone UIImage常用方法
- UIImage的copy方法
- UIImage实例方法
- iOS UIImage方法总结
- 8255A 端口地址的确定
- 谷歌插件与桌面通讯
- MYSQL分页储存过程(取得数据集合和查询AllRows)
- PHP魔术常量
- Media-媒介(媒体、介质)【译】
- UIImage方法(imageWithCGImage: scale: orientation:)
- 插入排序
- Android_ViewPager_用户向导
- 解决myeclipse安装SVN插件不起作用
- SQL Server 2005 附加 数据库为 只读 的解决方法(转)
- sql server 性能分析工具
- ArrayList Vector LinkedList区别与用法
- 不错的东西: AutoMapper
- MYSQL的C 语言接口