objective-c - ios 图片如何转化成二进制流
ringa_lee
ringa_lee 2017-04-18 09:40:31
0
1
634

ios 图片如何转化成二进制流

ringa_lee
ringa_lee

ringa_lee

Antworte allen(1)
大家讲道理
UIKIT_EXTERN  NSData * __nullable UIImagePNGRepresentation(UIImage * __nonnull image);                               // return image as PNG. May return nil if image has no CGImageRef or invalid bitmap format
UIKIT_EXTERN  NSData * __nullable UIImageJPEGRepresentation(UIImage * __nonnull image, CGFloat compressionQuality);  // return image as JPEG. May return nil if image has no CGImageRef or invalid bitmap format. compression is 0(most)..1(least)
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage