/** Set the position and scale of the dragged/stretched image. */ public boolean setPositionAndScale( Img img, PositionAndScale newImgPosAndScale, PointInfo touchPoint) { currTouchPoint.set(touchPoint); boolean ok = img.setPos(newImgPosAndScale); if (ok) invalidate(); return ok; }