/** * Set zoom parameters equal to another TouchImageView. Including scale, position, and ScaleType. */ public void setZoom(TouchImageView img) { PointF center = img.getScrollPosition(); setZoom(img.getCurrentZoom(), center.x, center.y, img.getScaleType()); }