SetJPEGCompression method (ILEADRasterTwain)

Visual Basic example

Visual C++ example

 

Syntax

short SetJPEGCompression (short iFlags)

Overview

Refer to Using JPEG Compression for a TWAIN Source.

Remarks

Sets the JPEG compression options for the current TWAIN session.

This method lets the user set JPEG compression options for the current TWAIN session, or reset the default JPEG compression options for the current TWAIN session, depending on the flag passed to the iFlags parameter.

To get the JPEG compression options for the current TWAIN session, call the GetJPEGCompression method.

To set new JPEG compression options, get the current options by calling the GetJPEGCompression method. This will update the JPEGCompressionData property. This property provides access to the ITwainJpegCompression properties. Set these ITwainJpegCompression properties to the new values and then call the SetJPEGCompression method.

A TWAIN session is started by calling the InitSession method.

See Also

Elements

GetJPEGCompression method, JPEGCompressionData property

Topics

TWAIN Functionality: JPEG Compression Functions