DTwainCompressedTransfer::SetJPEGQuality

Top  Previous  Next

Syntax

 

DTwainCompressedTransfer& DTwainCompressedTransfer::SetJPEGQuality( LONG Quality );

 

Return Value

Returns reference to current DTwainCompressedTransfer object (*this).

 

 

Comments

 

 

Sets the JPEG quality factor when acquiring buffered images using JPEG compression.  The Source must support JPEG compressed transfers.  To check this, the DTwainCompressedTransfer::IsJPEGCompressionSupported( ) must return true.

 

The quality factor of a JPEG file determines the lossyness of the data.  Since JPEG is a lossy format, the higher the quality factor, the better quality the image.  However, higher quality images means that the image is larger in size (in bytes).  The Quality must be between 0 and 99, where 0 is the lowest quality, and 99 is the highest quality. Quality can also be one of these special values:

 

Quality      Definition

-3

Low quality

-2

Medium quality

-1

High quality