Latest 0.1.4
Homepage https://github.com/silence0201/CIFilterExtensions
License MIT
Platforms ios 8.0, requires ARC
Authors

Language
License
Core Image中滤镜进行简单链式封装

导入

将项目中CIFilterExtensions文件夹拖到项目里

或者使用Pod安装

pod 'CIFilterExtensions', '~> 0.1.0'

使用

  1. 导入头文件

    import CIFilterExtensions
  2. 快速创建滤镜

    let blur = CIGaussianBlurFilter.init(image: ciimage, radius: 5)
    _ = blur.filter()
  3. 链式应用滤镜

    let ciimage = CIImage.init(cgImage: cgimage)
    let ot = ciimage.gaussianBlurFilter(radius: 5)?.colorInvertFilter()
  4. 快速转换图片表现形式

    ot?.convertToUIImageCompletion({ (image) in
       if let image = image {
             self.imageView.image = image
          }
     })

CIFilterExtensions

CIFilterExtensions is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CIFilterExtensions",
    "version": "0.1.4",
    "summary": "CIFilterExtensions.",
    "description": "Easy Use CIFilter",
    "homepage": "https://github.com/silence0201/CIFilterExtensions",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Silence": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/silence0201/CIFilterExtensions.git",
        "tag": "0.1.4"
    },
    "requires_arc": true,
    "pushed_with_swift_version": "3.0",
    "subspecs": [
        {
            "name": "Blur",
            "source_files": [
                "Blur",
                "CIFilterExtensions/{Blur,Common}/*.swift"
            ]
        },
        {
            "name": "ColorAdjustment",
            "source_files": [
                "ColorAdjustment",
                "CIFilterExtensions/{ColorAdjustment,Common}/*.swift"
            ]
        },
        {
            "name": "ColorEffect",
            "source_files": [
                "ColorEffect",
                "CIFilterExtensions/{ColorEffect,Common}/*.swift"
            ]
        },
        {
            "name": "CompositeOperation",
            "source_files": [
                "CompositeOperation",
                "CIFilterExtensions/{CompositeOperation,Common}/*.swift"
            ]
        },
        {
            "name": "DistortionEffect",
            "source_files": [
                "DistortionEffect",
                "CIFilterExtensions/{DistortionEffect,Common}/*.swift"
            ]
        },
        {
            "name": "Generator",
            "source_files": [
                "Generator",
                "CIFilterExtensions/{Generator,Common}/*.swift"
            ]
        },
        {
            "name": "GeometryAdjustment",
            "source_files": [
                "GeometryAdjustment",
                "CIFilterExtensions/{GeometryAdjustment,Common}/*.swift"
            ]
        },
        {
            "name": "Gradient",
            "source_files": [
                "Gradient",
                "CIFilterExtensions/{Gradient,Common}/*.swift"
            ]
        },
        {
            "name": "HalftoneEffect",
            "source_files": [
                "HalftoneEffect",
                "CIFilterExtensions/{HalftoneEffect,Common}/*.swift"
            ]
        },
        {
            "name": "Reduction",
            "source_files": [
                "Reduction",
                "CIFilterExtensions/{Reduction,Common}/*.swift"
            ]
        },
        {
            "name": "Sharpen",
            "source_files": [
                "Sharpen",
                "CIFilterExtensions/{Sharpen,Common}/*.swift"
            ]
        },
        {
            "name": "Stylize",
            "source_files": [
                "Stylize",
                "CIFilterExtensions/{Stylize,Common}/*.swift"
            ]
        },
        {
            "name": "TileEffect",
            "source_files": [
                "TileEffect",
                "CIFilterExtensions/{TileEffect,Common}/*.swift"
            ]
        },
        {
            "name": "Transition",
            "source_files": [
                "Transition",
                "CIFilterExtensions/{Transition,Common}/*.swift"
            ]
        }
    ]
}

Pin It on Pinterest

Share This