public void setImageResource(int resId) {
    if (resId != 0) {
      mCropOverlayView.setInitialCropWindowRect(null);
      Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resId);
      setBitmap(bitmap, resId, null, 1, 0);
    }
  }
Sets a Drawable as the content of the CropImageView.

@param resId the drawable resource ID to set
core/src/main/java/com/theartofdev/edmodo/cropper/CropImageView.java