I have two UIImageView
with same frame. One imageView
above second imageView
now I'm erasing upper imageView
using Core Graphics. My problem is that the border of eraser is very sharp I want faded border i.e. after erasing the upper image should match the lower one's pallet. See below example -
I used these two images and below is result -
As you can see in this image eraser's border is very sharp. I want to make it faded out like in the middle it should be dark then light then more light and so on i.e. we cant see the width and end of brush. And here is my - My Sample Code
Let me know if my question is not clear enough.
The easiest way to add faded effect on the photograph is by using the Fotophire Editing Toolkit.
Simply select the photo, then click “filter” and “advanced options.” Slide to the right to blur, and to the left to sharpen.
You can have a png image like brush (dark in the middle and light in the corner) and draw the image over your image like this.
[eraser drawAtPoint:location blendMode:kCGBlendModeDestinationOut alpha:1];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With