DTwainBufferedTransfer::GetData |
Top Previous Next |
Syntax
const std::string& DTwainBufferedTransfer::GetData( ) const;
Return Value Returns a std::string that represents the acquired data.
Comments
Returns the image data that has currently been acquired during buffered transfer mode. For each strip that is acquired in the buffered transfer mode, the image data for the strip is appended to an internal buffer represented by a std::string variable. Note that GetData( ) returns a const std::string reference to the image data, meaning that the data returned cannot be modified by the caller.
To retrieve the image data from the std::string, the std::string::data( ) function should be used. To get the length of the data, std::string::length( ) is used. See Example 7 for usage of GetData( )
To get a modifiable std::string to the actual image data, call DTwainBufferedTransfer::GetDataBuffer( ) function.
|