Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top