1.18 xestiascan_scan_preview
xestiascan_scan_preview previews a document for scanning. It also prints out a form for changing the scanner settings.
Parameters:
xestiascan_scan_preview(previewdocument, previewoptions);
Usage:
$previewoptions{ScannerID} = $form_data->{'scanner'};
$previewoptions{Brightness} = $form_data->{'brightness'};
$previewoptions{Contrast} = $form_data->{'contrast'};
$previewoptions{Rotate} = $form_data->{'rotate'};
$previewoptions{Colour} = $form_data->{'colourtype'};
$previewoptions{Resolution} = $form_data->{'imagedpi'};
$previewoptions{TopLeftX} = $form_data->{'topleftx'};
$previewoptions{TopLeftY} = $form_data->{'toplefty'};
$previewoptions{BottomRightX} = $form_data->{'bottomrightx'};
$previewoptions{BottomRightY} = $form_data->{'bottomrighty'};
$page_data = xestiascan_scan_preview(“off”, %previewoptions);
$page_data = xestiascan_scan_preview(“on”, %previewoptions);
previewdocument
Specifies if a preview of the document that is in the scanner should be scanned and displayed as a preview.
previewoptions
Specifies the following preview options as a hash.
Setting |
Value |
ScannerID |
Specifies the SANE Scanner ID to preview a document with. |
Brightness |
Specifies how bright the document should have. |
Contrast |
Specifies how much contrast the document have. |
Rotate |
Specifies the rotation of the document (0, 90, 180, or 270 degrees). |
Colour |
Specifies if the document should be grey or RGB. |
Resolution |
Specifies the resolution of the document. |
TopLeftX |
Specifies the top left X position of the document to scan from. |
TopLeftY |
Specifies the top left Y position of the document to scan from. |
BottomRightX |
Specifies the bottom right X position of the document to scan to. |
BottomRightY |
Specifies the bottom right Y position of the document to scan to. |