10350 Santa Monica Blvd. Suite 285,
Phone: 310-691-8920, 310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 12
1.1.4. ScanToFile
Format
Parameters
[in] FileName – Null terminated string that holds the full path of the scanned image.
Return
If function succeeds, the return value is SLIB_ERR_NONE
If function fails, the return number is may be one of the following:
SLIB_ERR_SCANNER_BUSSY: The scanner is still busy executing the previous scanner command.
LICENSE_INVALID – Library was not initialized with proper license.
SLIB_ERR_SCANNER_NOT_FOUND – No attached scanner was found.
SLIB_ERR_SCANNER_GENERAL_FAIL
SLIB_ERR_SCANNER_NOT_FOUND
SLIB_ERR_HARDWARE_ERROR
SLIB_ERR_PAPER_FED_ERROR
SLIB_ERR_SCANABORT
SLIB_ERR_NO_PAPER
SLIB_ERR_PAPER_JAM
SLIB_ERR_FILE_IO_ERROR
SLIB_ERR_PRINTER_PORT_USED
SLIB_ERR_OUT_OF_MEMORY
Remarks
Scan document to the internal image buffer and, in the same time, export it to a bitmap file named “File
Name” in the local disk under. The operation result can be tested for good completion by reading
LastErrorStatus property.
Notice that it is important to scan the image in True color and 300 dpi for OCR recognition.
After the scan, the internal image can be further manipulated and exported using separate commands
such as:
Rotation – use RotateImage() to rotate the internal image in 90,180 or 270 degrees.
Color Scheme – Modify the internal image color to Gray or black and white images using
ReformatImage().
Resolution – Modify the internal image resolution to any resolution using ReformatImage().
Saving format – Save the internal image to external file in one of 7 popular file formats using either
ConvertImage() or ReformatImage() or RotateImage()
1.1.5. ScanToFileEX
Format