/**
  * Get the current position and scale of the selected image. Called whenever a drag starts or is
  * reset.
  */
 public void getPositionAndScale(Img img, PositionAndScale objPosAndScaleOut) {
   // FIXME affine-izem (and fix the fact that the anisotropic_scale part requires averaging the
   // two scale factors)
   objPosAndScaleOut.set(
       img.getCenterX(),
       img.getCenterY(),
       (mUIMode & UI_MODE_ANISOTROPIC_SCALE) == 0,
       (img.getScaleX() + img.getScaleY()) / 2,
       (mUIMode & UI_MODE_ANISOTROPIC_SCALE) != 0,
       img.getScaleX(),
       img.getScaleY(),
       (mUIMode & UI_MODE_ROTATE) != 0,
       img.getAngle());
 }