10350 Santa Monica Blvd. Suite 285, Los Angeles, CA 90025
Phone: 310-691-8920, 310-788-9840, Fax: 419-735 -2419
Card Scanning Solutions
10
Library Properties and Methods
Library SlibEx: General Functionality
SlibEx library is used to scan documents and load their image to the internal image container. The
library also saves the scanned image to an external bitmap file. The library sets and retrieves the
scanners properties (such as scanning size, resolution and color scheme). The validity of all operations
on properties or funct ions is reflected on the property
LastErrorStatus
. This property automatically
reset upon reading.
Important
: Some scanner functions may take several seconds to execute (such as
Scan
or
Clean
).
While executing lengthily function one should not try to execute a second scanner function until the
previous function has returned. Failing to follow this rule may cause software\hardware exception.
SlibEx Library Functions
1.1.1.
InitLibrary
Format
Parameters
[in]
License
– Null terminated string that holds license key value.
Return
SLIB_ERR_SCANNER_BUSSY
: The scanner is still busy executing the previous scanner command.
LICENSE_VALID
: License is valid and the library is ready to be used.
LICENSE_INVALID
: The license is invalid. All scanner operations are disabled.
LICENSE_EXPIRED
: License has expired. All scanner operations are disabled.
SLIB_ERR_DRIVER_NOT_FOUND
: The scanner driver was not found. To fix this error re-install
the scanner’s driver. All scanner operations are disabled.
SLIB_ERR_SCANNER_NOT_FOUND
: The scanner is not connected to the PC. To fix this error
make sure the scanner is connected and re-starts the. All scanner operations are disabled.
Remarks
Use this function to initialize the scanner library. This function loads the scanner driver and initializes
the internal image structure. This function must be called before calling any other function in the
library.
IMPORTANT: When the application unload is should call the function UnInit to unload the
SDK and release its memory (See the function description as section 1.1.34 on ScanWex.pdf )
InitLibrary (
License
As String) As Long