BitMiracle.LibJpeg.Classic.jpeg_compress_struct.jpeg_set_linear_quality C# (CSharp) Method

jpeg_set_linear_quality() public method

Same as jpeg_set_quality except that the generated tables are the sample tables given in the JPEG specification section K.1, multiplied by the specified scale factor.
Note that larger scale factors give lower quality. This entry point is useful for conforming to the Adobe PostScript DCT conventions, but we do not recommend linear scaling as a user-visible quality scale otherwise.
public jpeg_set_linear_quality ( int scale_factor, bool force_baseline ) : void
scale_factor int The scale_factor.
force_baseline bool If true, then the quantization table entries are /// constrained to the range 1..255 for full JPEG baseline compatibility. In the current /// implementation, this only makes a difference for quality settings below 25, and it /// effectively prevents very small/low quality files from being generated. The IJG decoder /// is capable of reading the non-baseline files generated at low quality settings when /// force_baseline is false, but other decoders may not be.
return void
        public void jpeg_set_linear_quality(int scale_factor, bool force_baseline)
        {
            /* Set up two quantization tables using the specified scaling */
            jpeg_add_quant_table(0, std_luminance_quant_tbl, scale_factor, force_baseline);
            jpeg_add_quant_table(1, std_chrominance_quant_tbl, scale_factor, force_baseline);
        }