Skip to content

Background

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

Show/hide the background mask:

DocReader.shared.customization.showBackgroundMask = true
[RGLDocReader shared].customization.showBackgroundMask = YES;
  • Change the intensity of the background mask:
DocReader.shared.customization.backgroundMaskAlpha = 0.3
[RGLDocReader shared].customization.backgroundMaskAlpha = 0.3;
DocReader.shared.customization.borderBackgroundImage = UIImage(named: "icon")
[RGLDocReader shared].customization.borderBackgroundImage = [UIImage imageNamed:@"icon"];
DocReader.shared.customization.borderBackgroundImageContentMode = UIView.ContentMode.scaleAspectFit
[RGLDocReader shared].customization.borderBackgroundImageContentMode = UIViewContentModeScaleAspectFit;
  • Set the color for the preview background that is outside of the background mask:
DocReader.shared.customization.cameraPreviewBackgroundColor = UIColor.purple;
[RGLDocReader shared].customization.cameraPreviewBackgroundColor = [UIColor purpleColor];

Next Steps