SPImageFilter 0.0.2

SPImageFilter 0.0.2

heoblitz 维护。



  • 作者
  • Heo Won

SPImageFilter

swift pod License: MIT

使用图像过滤器的最简单方法🎨

如何使用

默认

let image: UIImage = UIImage(name: "example")?.spFilter(type: .ciBoxBlur, options: [
        "inputRadius" : 10
    ]).output

过滤链

let image: UIImage = UIImage(name: "example")?
    .spFilter(type: .ciSepiaTone, options: [
        "inputIntensity" : 0.9
    ])
    .spFilter(type: .ciBloom, options: [
        "inputRadius" : 10,
        "inputIntensity" : 2
    ]).output

安装

CocoaPods

pod 'SPImageFilter'

文档

核心图像滤镜参考