I try to add some noise overlay to an image with the following:
var picture = PictureInput(image:UIImage(named:"IMG_3331.jpg")!)
var blendImage = PictureInput(image:UIImage(named:"Noise.jpg")!)
let opacityFilter = OpacityAdjustment()
let blendFilter = OverlayBlend()
When the opacityFilter.opacity is 0 then I see the Noise.jpg completely (expected that I don't see it at all), and when opacityFilter.opacity is 1 then I see the Noise.jpg only slightly as an overlay.
Hi,
I try to add some noise overlay to an image with the following:
var picture = PictureInput(image:UIImage(named:"IMG_3331.jpg")!) var blendImage = PictureInput(image:UIImage(named:"Noise.jpg")!) let opacityFilter = OpacityAdjustment() let blendFilter = OverlayBlend()
opacityFilter.opacity = mySlider.value
blendImage --> opacityFilter --> blendFilter picture --> blendFilter --> renderView
blendImage.processImage()
When the opacityFilter.opacity is 0 then I see the Noise.jpg completely (expected that I don't see it at all), and when opacityFilter.opacity is 1 then I see the Noise.jpg only slightly as an overlay.
What is the issue?