FluxJpeg.Core.Decoder.JpegComponent.setDCTable C# (CSharp) Method

setDCTable() public method

public setDCTable ( JpegHuffmanTable table ) : void
table FluxJpeg.Core.JpegHuffmanTable
return void
        public void setDCTable(JpegHuffmanTable table)
        {
            DCTable = new HuffmanTable(table);
        }

Usage Example

Exemplo n.º 1
0
        public void setHuffmanTables(byte componentID, JpegHuffmanTable ACTable, JpegHuffmanTable DCTable)
        {
            JpegComponent comp = Scan.GetComponentById(componentID);

            if (DCTable != null)
            {
                comp.setDCTable(DCTable);
            }
            if (ACTable != null)
            {
                comp.setACTable(ACTable);
            }
        }