DTwainSourceFileTransfer::Attach |
Top Previous Next |
Syntax
DTwainSourceFileTransfer& DTwainSourceFileTransfer::Attach( const DTwainSource& Source );
Parameters Source
Twain Source to use for the buffered transfer.
Return Value Returns reference to current DTwainAcquirer object (*this).
Comments
The Attach( ) function allows the DTwainSourceFileTransfer object to use the Twain Source Source for getting and retrieving information relating to buffered transfers. This function must be called if the default constructor is used to construct a DTwainSourceFileTransfer object (the default constructor has no arguments).
When Attach( ) is called, the DTwainSourceFileTransfer object retrieves information from the Source with respect to buffered transfers. This information includes the minimum, maximumm, and preferred strip sizes, the various compression types supported by the Source, etc.
You can reuse a DTwainSourceFileTransfer object with another Twain Source by calling Attach( ) with the new Twain Source. Calling Attach( ) removes the previously attached Twain Source.
|