This function closes the currently opened Data Source.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_TWAIN_source_close() |
None
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
This function does not process image pixels.
When an application is finished with a Data Source, it must formally close the session between them using this function. This is necessary in case the Data Source only supports connection with a single application (many desktop scanners will behave this way). A Data Source such as this cannot be accessed by other applications until its current session is terminated.