public void setAspectRatioY(int aspectRatioY) {
    if (aspectRatioY <= 0) {
      throw new IllegalArgumentException(
          "Cannot set aspect ratio value to a number less than or equal to 0.");
    } else if (mAspectRatioY != aspectRatioY) {
      mAspectRatioY = aspectRatioY;
      mTargetAspectRatio = ((float) mAspectRatioX) / mAspectRatioY;

      if (initializedCropWindow) {
        initCropWindow();
        invalidate();
      }
    }
  }
Sets the Y value of the aspect ratio; is defaulted to 1.

@param aspectRatioY int that specifies the new Y value of the aspect ratio
core/src/main/java/com/theartofdev/edmodo/cropper/CropOverlayView.java