首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏iOS 备忘录

    iOS 11.0 之后拍照生成的imageOrientation的问题

    // 这里是用的是生成图片时的设备方向,如果需要按照拍照时的设备方向,可以在capureOutput:willCapturePhotoForResolvedSettings:中保存 UIImageOrientation takeImageCompletion:tempImage buffer:nil error:error]; } } // 这个方法可以放在UIDeviceOrientation的Category中统一定义 - (UIImageOrientation

    2.5K31发布于 2021-04-15
  • 来自专栏岑志军的专栏

    iOS模仿系统相机拍照你不曾注意过的细节

    这里随便从网上找了一个,需要的可以参考下 基础知识 首先我们需要知道每一个UIImage对象,都有一个imageOrientation属性,里面保存着方向信息: typedef NS_ENUM(NSInteger, UIImageOrientation ,主要用到了下面的这个方法: - (instancetype)initWithCIImage:(CIImage *)ciImage scale:(CGFloat)scale orientation:(UIImageOrientation

    83620发布于 2018-07-03
  • 来自专栏博文视点Broadview

    iOS的GIF动画效果实现

    (gifDataSource, i, nil) let image:UIImage =UIImage(cgImage:scale:UIScreen.main.scale,orientation:UIImageOrientation.up public init(CGImage cgImage: CGImage, scale: CGFloat, orientation: UIImageOrientation) 通过上述两步已经获取了UIImage ,scale:UIScreen.main.scale,orientation:UIImageOrientation.up ) 9 let imageData:Data = UIImagePNGRepresentation

    2.1K20发布于 2020-06-11
  • 来自专栏ios技术安装

    iOS:聊一聊UIImage几点知识

    important;">typedef NS_ENUM(NSInteger, UIImageOrientation) { UIImageOrientationUp, // default orientation

    1.7K20发布于 2020-09-14
  • 来自专栏云原生布道专栏

    【IOS开发基础系列】Table View开发专题

    button.transform = rotationTransform; 最后,作为accessoryView使用按钮: cell.accessoryView = button; 2.2.15.2 方案二UIImageOrientation UIControlStateNormal];             [cell addSubview: btn]; #pragma mark - 图片旋转 - (UIImage*) changeImageOrientation: (UIImageOrientation

    2.6K20编辑于 2023-10-16
  • 来自专栏iOS122-移动混合开发研究院

    番外特别篇之 为什么我不建议你直接使用UIImage传值?--从一个诡异的相册九图连读崩溃bug谈起

    requestImageDataForAsset:asset options:option resultHandler:^(NSData * _Nullable imageData, NSString * _Nullable dataUTI, UIImageOrientation

    2.3K70发布于 2018-01-02
  • 来自专栏哈雷彗星撞地球

    SDWebImageV3.7.5源码解析

    sd_imageWithWebPData:data]; } #endif else { image = [[UIImage alloc] initWithData:data]; UIImageOrientation

    1.1K30发布于 2018-08-22
  • 来自专栏王大锤

    SDWebImage源码阅读-第三篇

    else {// 3.其他情况 image = [[UIImage alloc] initWithData:data]; // 获取图片的方向 UIImageOrientation

    1.7K50发布于 2018-05-17
  • 来自专栏老司机的简书

    老司机出品———疯狂造轮子之滑动验证码

    获取旋转角度的图片 -(UIImage *)dw_RotateImageWithAngle:(CGFloat)angle; ///按给定的方向旋转图片 -(UIImage*)dw_RotateWithOrient:(UIImageOrientation

    1.3K41发布于 2018-08-22
  • 来自专栏云原生布道专栏

    【IOS开发高级系列】异步绘制专题

    sd_imageWithWebPData: data]; } #endif else { image =[[UIImage alloc] initWithData: data]; UIImageOrientation

    1.9K20编辑于 2022-03-08
  • 来自专栏程序员维他命

    带你打造一套 APM 监控系统 之 OOM 问题

    UIImage *)scaledImageWithData:(NSData *)data withSize:(CGSize)size scale:(CGFloat)scale orientation:(UIImageOrientation

    5.2K21发布于 2020-07-15
领券