LTwain::SetJPEGCompression

Summary

Sets or restores JPEG compression options for the specified TWAIN session.

Syntax

#include "ltwrappr.h"

L_INT LTwain::SetJPEGCompression (pTwJpegComp, uFlag);

Parameters

pTW_JPEGCOMPRESSION pTwJpegComp

Pointer to a TW_JPEGCOMPRESSION structure that contains the JPEG compression options to set.

L_UINT uFlag

Flag that indicates whether to set new or restore default JPEG compression options. Possible values are:

Value Meaning
LTWAIN_SET_JPEG_COMPRESSION [0x0001] Set new JPEG compression options.
LTWAIN_RESET_JPEG_COMPRESSION [0x0002] Restore default JPEG compression options.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Depending upon the flag used, this function will either set JPEG compression options for the specified TWAIN session, or restore the default JPEG compression options for the specified TWAIN session.

For more information about TW_JPEGCOMPRESSION, refer to the TWAIN specification.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LTwain::GetJPEGCompression.

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

LEADTOOLS TWAIN C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.