ImageCoderPlugin
public protocol ImageCoderPlugin : AnyObject
图片解码器插件协议,应用可自定义图片解码器插件
-
imageDecode(_:
Default implementationscale: options: ) image本地解码插件方法,默认使用系统方法
Default Implementation
image本地解码插件方法,默认使用系统方法
Declaration
Swift
func imageDecode( _ data: Data, scale: CGFloat, options: [ImageCoderOptions: Any]? ) -> UIImage?
-
imageEncode(_:
Default implementationoptions: ) image本地编码插件方法,默认使用系统方法
Default Implementation
image本地编码插件方法,默认使用系统方法
Declaration
Swift
func imageEncode( _ image: UIImage, options: [ImageCoderOptions: Any]? ) -> Data?