3

I know there is a bunch of threads about that subject, tho it reduced the transparency, but still it exists.

Note, the UIImageView has a green background, which we SHOULD NOT see

Original and filtered(guess who lol):

enter image description here

Code used (partial):

 blurFilter!.setValue(val, forKey: "inputRadius")
        
        if let output = blurFilter?.valueForKey(kCIOutputImageKey) as? CIImage {
            let cgimgresult = context.createCGImage(output, fromRect: inputImage.extent)
            let result = UIImage(CGImage: cgimgresult)
            imageView?.image = result

}

Note : If possible, i'm looking for the most efficient method in terms of runtime Any Suggestions? Thanks YOU!

Community
  • 1
  • 1
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105

0 Answers0