Question

I have tried, compositing filters, both ATop and Over, But did not get the required Image as out put. what I want is something like this: enter image description here

NOTE: both the Image1 and Border are png Images.

Now what i am getting is either the border1 image or the image1 image, it seems they are not considering the alpha parts in border1 image, its removing the alpha channel and am left with a white background under the border image instead of image 1 peeking out.

Any idea about how to proceed? thanks in advance.

Was it helpful?

Solution

Use the UIImage converted to CIImage with data as png, with this following code

 CIImage *paper1 =[CIImage imageWithData:UIImagePNGRepresentation([UIImage imageNamed:@"yourPNGImage.png"])];

This Solves the problem, since earlier times the UIImage (though in .png format) was getting converted into a jpeg format CIImage.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top