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()
- Set an image within the camera frame:
DocumentReader.Instance().customization().edit().setBorderBackgroundImage(getResources().getDrawable(R.drawable.icon)).apply();
DocumentReader.Instance().customization().edit().setBorderBackgroundImage(getDrawable(R.drawable.icon)).apply()
- Set the color for the preview background that is outside of the background mask:
DocumentReader.Instance().customization().edit().setCameraPreviewBackgroundColor("#2596be").apply();
DocumentReader.Instance().customization().edit().setCameraPreviewBackgroundColor("#2596be").apply()