Latest 0.0.2
Homepage https://github.com/d-dotsenko/DDBlackWhite
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

Language
Platform
License
Version

Make your image black and white

DDBlackWhite

Installation

CocoaPods

To install DDBlackWhite via CocoaPods, add the following line to your Podfile:

pod 'DDBlackWhite'

Manually

Add DDBlackWhite folder to your Xcode project.

Usage

See the example Xcode project.

Basic setup

Create the DDBlackWhite instance, set the inputImage and brightness variables.
Call getFilteredImage method and its closure will return the filtered image.

let blackWhite = DDBlackWhite()
blackWhite.inputImage = image
blackWhite.brightness = 0.8
blackWhite.getFilteredImage { (image) in
// filtered image received
}

Populating the data

var inputImage: UIImage?
private(set) var outputImage: UIImage?
var brightness: CGFloat // The filter brightness value (0.0 ... 1.0), Default is 0.5

func getFilteredImage(closure: @escaping (UIImage?)->Void)

Requirements

  • iOS 9.0
  • Xcode 10, Swift 4.2

License

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

Latest podspec

{
    "name": "DDBlackWhite",
    "platforms": {
        "ios": "9.0"
    },
    "summary": "DDBlackWhite allows a user to make his image black and white",
    "requires_arc": true,
    "version": "0.0.2",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Dmitriy Dotsenko": "[email protected]"
    },
    "homepage": "https://github.com/d-dotsenko/DDBlackWhite",
    "source": {
        "git": "https://github.com/d-dotsenko/DDBlackWhite.git",
        "tag": "0.0.2"
    },
    "frameworks": "UIKit",
    "source_files": "DDBlackWhite/**/*.{h,swift}",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This