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;
- Set an image within the camera frame:
DocReader.shared.customization.borderBackgroundImage = UIImage(named: "icon")
[RGLDocReader shared].customization.borderBackgroundImage = [UIImage imageNamed:@"icon"];
- To change the content mode of an image that is located within the camera frame, use one of the
UIView.ContentMode
members:
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];