DTwainBufferedTransfer::Attach |
Top Previous Next |
Syntax
DTwainBufferedTransfer& DTwainBufferedTransfer::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 DTwainBufferedTransfer 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 DTwainBufferedTransfer object (the default constructor has no arguments).
When Attach( ) is called, the DTwainBufferedTransfer 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 DTwainBufferedTransfer object with another Twain Source by calling Attach( ) with the new Twain Source. Calling Attach( ) removes the previously attached Twain Source.
|