Document Cleanup Custom UI
Composable Document Cleanup with customizable UI.
Renders the supplied image with mask-draw interaction backed by the Scanbot SDK Document Cleanup feature. Undo/redo/reset and the latest result are exposed via the DocumentCleanupActionController callback so the host UI is free to define its own top/bottom bars, sliders or other surrounding chrome.
Parameters
Input image to be cleaned up.
Modifier to be applied to the cleanup view.
SDK-level configuration for io.scanbot.sdk.imageprocessing.DocumentCleanup.
Background color behind the image canvas.
Diameter of the drawing brush used to mark areas for cleanup.
Color of the brush stroke preview while drawing.
Maximum zoom scale supported by the pinch-to-zoom gesture on the image.
Callback invoked when the DocumentCleanupActionController is created. Use this controller to trigger undo / redo / reset and to observe the current image and progress.
Callback invoked every time a new cleaned image is produced (after a mask is applied, an undo, a redo or a reset). The provided ImageRef is owned by the composable and must not be closed by the caller.
Callback invoked whenever a heavy cleanup operation starts (true) or finishes (false). Use this to render a loading indicator or to disable interaction outside the composable while cleanup, undo, redo or reset is running.
Callback invoked when the cleanup operation or the SDK setup fails.