Skip to content

Instantly share code, notes, and snippets.

@eunjin3786
Last active June 11, 2020 15:51
let output = self.beginImage
.applyingFilter("CISepiaTone", parameters: [
kCIInputIntensityKey: 0.5
])
.applyingFilter("CICMYKHalftone", parameters: [
kCIInputWidthKey: 35
])
if let cgimg = context.createCGImage(output, from: output.extent) {
let processedImage = UIImage(cgImage: cgimg)
self.imgView.image = processedImage
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment