private void updateRounding() {
    BorderOptions borderOptions = null;
    if (mShowBordersCheck.isChecked()) {
      borderOptions =
          BorderOptions.create(
              mColorPrimary,
              getResources().getDimensionPixelSize(R.dimen.image_rounded_corners_border_width),
              0f,
              mScaleInsideBordersCheck.isChecked());
    }

    mImageRoundOptions = mImageRoundOptions.extend().borders(borderOptions).build();
    mImageRadiusOptions = mImageRadiusOptions.extend().borders(borderOptions).build();
    mImageSomeOptions = mImageSomeOptions.extend().borders(borderOptions).build();
    mImageFancyOptions = mImageFancyOptions.extend().borders(borderOptions).build();

    loadImages();
  }
A {@link Fragment} that illustrates using rounded corners with Fresco.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/vito/VitoRoundedCornersFragment.java