DTWAIN_GetResolutionEx

Top  Previous  Next

The DTWAIN_GetResolutionEx function gets the current resolution value for the Source.

 

DTWAIN_FLOAT DTWAIN_GetResolutionEx ( DTWAIN_SOURCE Source );

 

Parameters

Source

    An open TWAIN Source.

 

Return Values

If successful, the current resolution value.  On failure, returns the minimum finite value representable by a DTWAIN_FLOAT (approximately 2.22507e-308).  Call DTWAIN_GetLastError() to get extended information.

 

Comments

The DTWAIN_GetResolutionEx function performs the same functionality as DTWAIN_GetResolution, with the difference being that the resolution is returned as a DTWAIN_FLOAT instead of the user providing a pointer to a DTWAIN_FLOAT as a parameter.

 

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 X-Y Resolution Values