DTWAIN_IsCompressionSupported

Top  Previous  Next

The DTWAIN_IsCompressionSupported function checks if a Source supports setting the Compression of an acquired image.

 

DTWAIN_BOOL DTWAIN_IsCompressionSupported (

DTWAIN_SOURCE

Source

LONG

Compression );

 

Parameters

Source

Specifies an open TWAIN Source.

 

Compression

Specifies compression to test for support, or DTWAIN_ANYSUPPORT

 

Return Values

If compressed support for buffered transfers is supported for the Source, TRUE is returned.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_IsCompressionSupported function takes the open Source Source, and checks to see if the compression Compression is supported.  The Compression value can be any one of the Compression constants.  If Compression is DTWAIN_ANYSUPPORT, DTWAIN_IsCompressionSupported returns whether the Source supports any compression.

 

The compression can be used for DTWAIN_AcquireBuffered or DTWAIN_AcquireBufferedEx functions.

 

TWAIN State Transitions

The source must be opened in State 4

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Setting / Getting Compression