GPUImage
GPUImage copied to clipboard
How to crop an image with a gradient transparent mask
Hi Brad, first of all, thank you so much for creating and sharing this framework. Much appreciated.
My question is that Is it possible to crop an image with a gradient transparent mask?
For example, I have two images. Image1 is a picture I want to crop. Image2 is a mask with gradient from black gradually changing it to transparency. I want the output image to be Image1 with only the black region from Image2.
Is it possible with this framework? Thanks so much.
-Steve