AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones de escáner
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Retrieves a document from a scanner in a variable of type Image.
Ejemplo
MyScanner is Scanner 
MyScanner = ScanSelect()

// Display the document in the scanner in an Image control
IMG_MyImage = ScanToImage(MyScanner)
IF ErrorOccurred THEN
	Error("The document was not scanned", ErrorInfo())
END

// Scan all pages in the feeder
ScanToImage(MyScanner, ProcessPageScan)
// Process a scanned page
INTERNAL PROCEDURE ProcessPageScan(nPageNum is int, ImageScan is Image)
	dSaveImageJPEG(ImageScan, "page" + nPageNum + ".jpg")
END
Sintaxis

Scanning a single page Ocultar los detalles

<Result> = ScanToImage(<Scanner>)
<Result>: Image variable
Image variable retrieved from the scanner. If an error occurs, the ErrorOccurred variable is set to True and ErrorInfo returns the corresponding error message.
<Scanner>: Scanner variable
Name of the Scanner variable initialized with the details of the scanner to be used.

Scanning multple pages (with feeder) Ocultar los detalles

<Result> = ScanToImage(<Scanner> [, <Number of pages>] , <End of page scan>)
<Result>: Boolean
  • True if the scan was completed successfully,
  • False if an error occurs during the scan process. The corresponding error message is returned by ErrorInfo.
<Scanner>: Scanner variable
Name of the scanner variable initialized with the details of the scanner to be used.
<Number of pages>: Optional integer
  • Number of pages to be scanned,
  • scanNumberPagesAll constant to scan all the pages in the feeder (default value).
<End of page scan>: Procedure name
Name of the WLanguage procedure ("callback") called once a page has been scanned. This procedure has the following format:
<Procedure name>(<Page number>, <Image>)
where:
  • <Numéro de page> Scanned page number.
  • <Image> Variable of type Image containing the scanned page. This variable is only valid when the Procedure is called: it must therefore be copied or saved in a file (no reference should be made to this variable).
If the procedure returns False, the scan is interrupted.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300std.dll
Versión mínima requerida
  • Versión 27
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local