Change color of certain pixels in a UIImage
You have to extract the pixel buffer of the image, at which point you can loop through, changing pixels as you see fit. At the end, create a new image from the buffer. In Swift 3, this looks like: func processPixels(in image: UIImage) -> UIImage? { guard let inputCGImage = image.cgImage else { print(“unable to … Read more