Package io.scanbot.sdk.persistence
Class PageStorageSettings.Builder
-
- All Implemented Interfaces:
public final class PageStorageSettings.Builder
-
-
Constructor Summary
Constructors Constructor Description PageStorageSettings.Builder()
-
Method Summary
Modifier and Type Method Description final PageStorageSettings.Builder
imageQuality(Integer imageQuality)
Sets image quality in a imageScale of 0, 100. final PageStorageSettings.Builder
imageFormat(CameraImageFormat imageFormat)
Sets image format, which will be used by Scanbot framework CameraImageFormat. final PageStorageSettings.Builder
addImageFileFormatExtension(Boolean addImageFileFormatExtension)
Sets image file format extension, which will be used by Scanbot framework CameraImageFormat If true - ".png" or ".jpg" extension will be added to the image file name, otherwise - files are without format extensions. final PageStorageSettings.Builder
previewTargetMax(Integer previewTargetMax)
Sets preview image target max dimension. final PageStorageSettings
build()
-
-
Method Detail
-
imageQuality
final PageStorageSettings.Builder imageQuality(Integer imageQuality)
Sets image quality in a imageScale of 0, 100.
Default is 80
-
imageFormat
final PageStorageSettings.Builder imageFormat(CameraImageFormat imageFormat)
Sets image format, which will be used by Scanbot framework CameraImageFormat.
Default is CameraImageFormat.JPG
-
addImageFileFormatExtension
final PageStorageSettings.Builder addImageFileFormatExtension(Boolean addImageFileFormatExtension)
Sets image file format extension, which will be used by Scanbot framework CameraImageFormat If true - ".png" or ".jpg" extension will be added to the image file name, otherwise - files are without format extensions. By default true.
-
previewTargetMax
final PageStorageSettings.Builder previewTargetMax(Integer previewTargetMax)
Sets preview image target max dimension. Image will be scaled down with the maximum dimension equals previewTargetMax.
Default is 1000
-
build
final PageStorageSettings build()
-
-
-
-