|
|
|
|
|
- Properties specific to Scanner variables
- WLanguage functions
Scanner (Variable type) In french: Scan
The Scanner type is used to handle the information from a scanner. You can define and change the characteristics of the scanner using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
MonScanneur is Scanner = ScanSelect()
IMG_Scan = ScanToImage(MonScanneur)
Properties 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. Note This zone is taken into account by the ScanProperty function if the constant scanFormatPaperPerso 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:- scanFormatColorAuto Color format automatically detected by device (default).
- scanFormatColorRGB RGB image (24 bits per pixel).
- scanFormatColorGrayLevel: Grayscale image.
- scanFormatColorBlackWhite: 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.
- scanRectoVersoYes: the scan is a duplex scan.
- scanRectoVersoNon: the scan is a single-sided scan only.
| 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: - <Numéro de page> Number of scanned page.
- <Progress percentage>: Scan progress percentage of the page (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 scan from feeder if there is a feeder and pages in the feeder, otherwise scan from tray (default value).
- scanFromFeeder: scan from feeder.
- scanfromPlateau: scan is performed from the plateau.
| Width | Integer | - Maximum width (in thousandths of a millimeter),
- scanWidthDefault constant (default value).
This property is read-only. |
Remarks 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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|