@Override
  public void onViewCreated(final View view, @Nullable Bundle savedInstanceState) {
    mUri =
        sampleUris()
            .createSampleUri(ImageUriProvider.ImageSize.L, ImageUriProvider.Orientation.LANDSCAPE);

    mFullImageView = (ImageViewWithAspectRatio) view.findViewById(R.id.image_view_full);
    VitoView.show(mUri, IMAGE_OPTIONS, CALLER_CONTEXT, mImageListener, mFullImageView);

    mSelectedRegion = (ResizableFrameLayout) view.findViewById(R.id.frame_main);
    mSelectedRegion.init(view.findViewById(R.id.btn_resize));
    mSelectedRegion.setSizeChangedListener(mSizeChangedListener);

    mRegionImageView = (ImageView) view.findViewById(R.id.image_view_region);
    mRegionImageView.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            updateRegion();
          }
        });
  }
Simple region decoding example that renders the original image and a selected region.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imagepipeline/ImagePipelineRegionDecodingFragment.java