GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

How to crop an image with a gradient transparent mask

Open tsoang opened this issue 12 years ago • 0 comments

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

tsoang avatar Jun 20 '14 16:06 tsoang