+ (UIImage *)imageWithCGImage:(CGImageRef)cgImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation
- 参数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,