DTwainSource::IsCapSupported |
Top Previous Next |
Syntax bool DTwainSource::IsCapSupported( LONG lCap ) const;
Parameters lCap Capability to test. See main help manual for capabilities.
Return Value Returns TRUE if the capability is supported by the Source, FALSE otherwise.
Example
#include <cdtwain.h> #include <iostream> using namespace DTWAIN; using namespace std;
int main( ) { DTwainInterface TI( NULL, NULL ); DTwainSource Source = DTwainSource::Select( ); if ( Source.IsValid( ) ) { bool bIsSupported = Source.IsCapSupported( DTWAIN_CV_ICAPGAMMA ); cout << "Gamma capability is" << (bIsSupported?" ":"not ") << "supported" << endl; } }
|