VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Encoders Namespace / JpegEncoderSettings Class / GenerateOptimalHuffmanTables Property
Syntax Requirements SeeAlso
In This Topic
    GenerateOptimalHuffmanTables Property (JpegEncoderSettings)
    In This Topic
    Gets or sets a value indicating whether JPEG file with the optimal Huffman tables must be created.
    Syntax
    'Declaration
    
    <DefaultValueAttribute(False)>
    <DescriptionAttribute("A value indicating whether JPEG file with the optimal Huffman tables must be created.")>
    Public Property GenerateOptimalHuffmanTables As Boolean
    
    
    [DefaultValue(False)]
    [Description("A value indicating whether JPEG file with the optimal Huffman tables must be created.")]
    public bool GenerateOptimalHuffmanTables { get; set; }
    
    
    [DefaultValue(False)]
    [Description("A value indicating whether JPEG file with the optimal Huffman tables must be created.")]
    public: __property bool get_GenerateOptimalHuffmanTables();
    public: __property void set_GenerateOptimalHuffmanTables(
    bool value
    );
    [DefaultValue(False)]
    [Description("A value indicating whether JPEG file with the optimal Huffman tables must be created.")]
    public:
    property bool GenerateOptimalHuffmanTables { bool get(); void set(bool value); }

    Property Value

    false - JPEG file with standard (static) Huffman tables will be created, encoding will be faster, but JPEG file size will not be optimal; true - JPEG file with optimal (dynamic) Huffman tables will be created, encoding will be some slower, but JPEG file size will be optimal.
    Default value is false.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also