Skip to content

Background

  • You can decide whether to darken the background around the document detection frame.

Show/hide the background mask:

DocumentReader.Instance().customization().edit().setShowBackgroundMask(true).apply();
DocumentReader.Instance().customization().edit().setShowBackgroundMask(true).apply()
  • Change the intensity of the background mask:
DocumentReader.Instance().customization().edit().setBackgroundMaskAlpha(0.5F).apply();
DocumentReader.Instance().customization().edit().setBackgroundMaskAlpha(0.5F).apply()
DocumentReader.Instance().customization().edit().setBorderBackgroundImage(getResources().getDrawable(R.drawable.icon)).apply();
DocumentReader.Instance().customization().edit().setBorderBackgroundImage(getDrawable(R.drawable.icon)).apply()

Next Steps