Created
February 11, 2020 15:11
-
-
Save alexpersian/be9897be642a1330140a8d51bad8ea26 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: Grayscale Filter | |
let grayscaleFilter = CIFilter(name: "CIPhotoEffectMono")! | |
grayscaleFilter.setValue(CIImage(cgImage: image.cgImage!), forKey: kCIInputImageKey) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment