![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UIImage
x1198928367
法律上开发围殴覅
展开
-
字符串与图片之间的转换
//图片转字符串 -(NSString *)UIImageToBase64Str:(UIImage *) image { NSData *data = UIImageJPEGRepresentation(image, 1.0f); NSString *encodedImageStr = [data base64EncodedS原创 2016-06-30 10:28:30 · 1372 阅读 · 0 评论 -
保存全屏为image
CGSize imageSize = [[UIScreen mainScreen] bounds].size; UIGraphicsBeginImageContextWithOptions(imageSize, NO, 0); CGContextRef context = UIGraphicsGetCurrentContext();原创 2016-06-30 10:46:56 · 215 阅读 · 0 评论