Pinch to zoom and rotation functionality

Can anyone guide me to implement Pinch to zoom and Rotating the image. There is no proper explanation of this.