Using JPEG Compression for a TWAIN Source

LEADTOOLS provides functionality to get and set JPEG compression for a TWAIN source. Use the LTwain::GetJPEGCompression function to obtain the current TWAIN JPEG compression settings by passing LTWAIN_GET_JPEG_COMPRESSION to the uFlag parameter. Similarly, obtain the default TWAIN JPEG compression settings by passing LTWAIN_GET_DEFAULT_JPEG_COMPRESSION to the uFlag parameter when calling the LTwain::GetJPEGCompression function.

To set JPEG compression for a TWAIN source, call the LTwain::SetJPEGCompression function and pass LTWAIN_SET_JPEG_COMPRESSION to the uFlag parameter. To restore the default TWAIN JPEG compression, call the LTwain::SetJPEGCompression function and pass LTWAIN_RESET_JPEG_COMPRESSION to the uFlag parameter.

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C++ Class Library Help