GetJPEGCompression method (ILEADRasterTwain)

Visual Basic example

Visual C++ example

 

Syntax

short GetJPEGCompression(short iFlags)

Overview

Refer to Using JPEG Compression for a TWAIN Source.

Remarks

Gets the current or default JPEG compression settings for the current TWAIN session.

This method updates the JPEGCompressionData property with the either the current or default JPEG compression settings, depending on the flag passed to the iFlags parameter.

To set the JPEG compression options for the current TWAIN session, set the ITwainJpegCompression properties referenced by the JPEGCompressionData property and call the SetJPEGCompression method.

A TWAIN session is started by calling the InitSession method.

See Also

Elements

SetJPEGCompression method, JPEGCompressionData property

Topics

TWAIN Functionality: JPEG Compression Functions