DTWAIN_RANGE Functions

Top  Previous  Next

The DTWAIN_RANGE emulates the TWAIN TW_RANGE structure.  The DTWAIN_RANGE makes it possible for languages to define a TW_RANGE easily.

 

DTWAIN_RangeCreate

DTWAIN_RangeCreateFromCap

DTWAIN_RangeDestroy

DTWAIN_RangeExpand

DTWAIN_RangeExpandEx

DTWAIN_RangeExpValue

DTWAIN_RangeExpValueFloat

DTWAIN_RangeExpValueFloatString

DTWAIN_RangeExpValueLong

DTWAIN_RangeGetAll

DTWAIN_RangeGetAllFloat

DTWAIN_RangeGetAllLong

DTWAIN_RangeGetAllFloatString

DTWAIN_RangeGetCount

DTWAIN_RangeGetNearestValue

DTWAIN_RangeGetNearestValueFloat

DTWAIN_RangeGetNearestValueLong

DTWAIN_RangeGetNearestValueFloatString

DTWAIN_RangeGetPos

DTWAIN_RangeGetPosFloat

DTWAIN_RangeGetPosLong

DTWAIN_RangeGetValue

DTWAIN_RangeGetValueFloat

DTWAIN_RangeGetValueFloatString

DTWAIN_RangeGetValueLong

DTWAIN_RangeSetAll

DTWAIN_RangeSetAllFloat

DTWAIN_RangeSetAllFloatString

DTWAIN_RangeSetAllLong

DTWAIN_RangeSetValue

DTWAIN_RangeSetValueFloat

DTWAIN_RangeSetValueLong

 

In addition to the functions above, any of the DTWAIN_ARRAY functions can also be used for DTWAIN_RANGE types.  The DTWAIN_RANGE is a specialized version of a DTWAIN_ARRAY.

 

Given the above, remember that a DTWAIN_RANGE is a DTWAIN_ARRAY, but a DTWAIN_ARRAY may not be a valid DTWAIN_RANGE.  You can easily render a DTWAIN_RANGE invalid by removing or adding values from it by using the DTWAIN_ARRAY functions.  The safest DTWAIN_ARRAY functions to use on DTWAIN_RANGEs would be functions that do not change the values in an existing DTWAIN_RANGE.  For example, DTWAIN_ArrayGetCount, DTWAIN_ArrayCreateCopy, etc.