How does pinch working?

How does pinch working?
I used driver.pinch(xcoordinate, ycoordinate); but not working.

What we are expecting from pinch action?

I am using Appium v1.4.16 in Windows system for executing the script. I need to do pinch action up on a image.

Have any alternative to do this action.

@wreed

I actually don’t use the pinch method, but here’s the description:

public void pinch(org.openqa.selenium.WebElement el)
Convenience method for pinching an element on the screen. “pinching” refers to the action of two appendages pressing the screen and sliding towards each other. NOTE: This convenience method places the initial touches around the element, if this would happen to place one of them off the screen, appium with return an outOfBounds error. In this case, revert to using the MultiTouchAction api instead of this method.
Parameters:
el - The element to pinch

public void pinch(int x,
int y)
Convenience method for pinching an element on the screen. “pinching” refers to the action of two appendages pressing the screen and sliding towards each other. NOTE: This convenience method places the initial touches around the element at a distance, if this would happen to place one of them off the screen, appium will return an outOfBounds error. In this case, revert to using the MultiTouchAction api instead of this method.
Parameters:
x - x coordinate to terminate the pinch on
y - y coordinate to terminate the pinch on

http://appium.github.io/java-client/io/appium/java_client/AppiumDriver.html