문제

In my IOS app,i want to use gesture control get the distorting mirror effect with an image.

For example, the normal image is like follow:

enter image description here

When i pinch opened on the man's mouth, mouth became bigger. The effect is about like follow.

enter image description here

Any SDK,code or demo is welcome.Thank first.

도움이 되었습니까?

해결책

From your given details, it looks like you need to interact with CoreImage framework. I would suggest to use CIHoleDistortion filter available in the doc here. It is available for both iOS and Mac OSX.

Currently i don't have a closer sample code but to give you a start-up here is an example on how to use these filters.

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