|
|
|
|
|
- Properties specific to Scanner variables
- WLanguage functions
Scanner (Type of variable) In french: Scan
The Scanner type is used to handle the information from a scanner. The characteristics of the scanner can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. // Scan an image MyScanner is Scanner = ScanSelect() IMG_Scan = ScanToImage(MyScanner)
Remarks Properties specific to Scanner variables The following properties can be used to handle the characteristics of a scanner: | | | Property name | Type used | Effect |
---|
Area | Rectangle | Area to be scanned (in thousandths of a millimeter). By default, a rectangle with all zero coordinates and dimensions (0,0,0,0) is used to scan the entire page. Remark: The ScanProperty function takes this area into account if the scanPaperSizeCustom constant is used. | BitPerPixel | Integer | - Number of bits per pixel,
- scanBitsPerPixelDefault constant (default value) if the value of the property should not be changed in the next scan. The property will use the previous value.
| Brightness | Integer | - Brightness, between -1000 and 1000,
- scanBrightnessDefault constant (default value) if the value of the property should not be changed in the next scan. The property will use the previous value.
| ColorFormat | Integer constant | Image color format:- scanColorFormatAuto: Color format automatically detected by the device (default).
- scanColorFormatRGB: RGB image (24 bits per pixel).
- scanColorFormatGrayscale: Grayscale image.
- scanColorFormatBlackWhite: Black and white image.
| Contrast | Integer | - Contrast, between -1000 and 1000,
- scanContrastDefault constant (default value) if the value of the property should not be changed in the next scan. The property will use the previous value.
| Duplex | Integer constant | Duplex mode options: - scanDuplexDefault constant (default value) if the value of the property should not be changed in the next scan. The property will use the previous value.
- scanDuplexYes: two-sided scanning.
- scanDuplexNo: one-sided scanning.
| Height | Integer | - Maximum height (in thousandths of a millimeter),
- scanHeightDefault constant (default value).
This property is read-only. | Name | Character string | - Scanner name,
- Empty string if the variable has not been initialized (default value).
This property is read-only. | ProcedureProgress | Procedure | - Name of the WLanguage procedure called when scanning a page,
- Empty string to not use a procedure (default value).
This procedure has the following format: <Procedure name>(<Page number>, <Progress percentage>) where: - <Page number>: Number of the scanned page.
- <Progress percentage> : Page scan progress percentage (between 0 and 100)
If the procedure returns False, the scan is interrupted. | Resolution | Integer | - Image resolution in pixels per inch,
- scanResolutionDefault constant (default value) if the value of the property should not be changed in the next scan. The property will use the previous value.
| ScanFrom | Integer constant | Indicates the source of the scan: - scanFromAuto: documents will be scanned from the feeder if there is a feeder and there are pages in the feeder. Otherwise, documents will be scanned from the flatbed (default value).
- scanFromFeeder: scan using the document feeder.
- scanFromFlatBed: scan using the flatbed.
| Width | Integer | - Maximum width (in thousandths of a millimeter),
- scanWidthDefault constant (default value).
This property is read-only. |
WLanguage functions The following WLanguage functions use the Scanner type:
| | ScanGet | Retrieves the characteristics of a scanner in a variable of type Scanner. | ScanProperty | Used to get and change the properties of a scanner. | ScanSelect | Opens a standard dialog box with the available scanners. | ScanToImage | Retrieves a document from a scanner in a variable of type Image. | ScanToPDF | Saves a document from a scanner to a PDF file. | ScanWithUserInterface | Saves a document from a scanner to one or more files, using the scanner's user interface. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|