DTWAIN_SetSourceUnit

Top  Previous  Next

The DTWAIN_SetSourceUnit sets the current unit of measure used by a Source.

 

DTWAIN_BOOL DTWAIN_SetSourceUnit (

DTWAIN_SOURCE

Source,

LONG

Unit );

 

Parameters

Source

Specifies a TWAIN Source.

 

Unit

Unit of measure to set the Source to.

 

Return Values

If the function succeeds, TRUE is returned.  If unsuccessful, FALSE is returned.

 

Comments

The DTWAIN_SetSourceUnit function sets the current unit of measure to Unit for the Source Source.

 

The unit of measure determines which unit the Source is using when describing certain quantities such as image size.  For more information on units of measure used by the Source, see Units of Measure and Image Acquisition.

 

TWAIN State Transitions

The Source must be in State 4 or higher.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Setting / Getting Source Unit of Measure