문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top