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();
RGLDocReader.Shared.Customization.ShowBackgroundMask = true;
  • Change the intensity of the background mask:
DocumentReader.Instance().Customization().Edit().SetBackgroundMaskAlpha((Java.Lang.Float)0.5F).Apply();
RGLDocReader.Shared.Customization.BackgroundMaskAlpha = 0.5F;
DocumentReader.Instance().Customization().Edit().SetBorderBackgroundImage(GetDrawable(Resource.Drawable.icon)).Apply();
RGLDocReader.Shared.Customization.BorderBackgroundImage = UIImage.FromBundle("icon.png");
  • Change the content mode of an image that is located within the camera frame:
RGLDocReader.Shared.Customization.BorderBackgroundImageContentMode = UIViewContentMode.ScaleAspectFit;

Next Steps