DTwainRange::CopyArrayToRange |
Top Previous Next |
Syntax DTwainDoubleRange& DTWAIN::CopyArrayToRange( const DTwainDoubleArray& Array )
DTwainLongRange& DTWAIN::CopyArrayToRange( const DTwainLongArray& Array )
Parameters Array A DTwainArray whose entries denote a range.
Return Value Returns a DTwainRange type that is equivalent to Array.
Comments The CopyArrayToRange returns a DTwainRange that is equivalent to the DTwainArray Array. If Array contains 5 values that denote the following:
Array[0] == minimum value Array[1] == maximum value Array[2] == step value Array[3] == default value Array[4] == current value
then calling CopyArrayToRange will return the DTwainRange associated with these values. This function is useful if a capability returns multiple values in the form of a range, and the application wants to subsequentally use DTwainRange functions on the returned data. See Example 6 for usage of CopyArrayToRange.
|