Decompress() public method

Decompresses JPEG image to any image described as ICompressDestination
public Decompress ( Stream jpeg, IDecompressDestination destination ) : void
jpeg Stream Stream with JPEG data
destination IDecompressDestination Stream for output of compressed JPEG
return void
Example #1
0
        private void fillDecompressedData()
        {
            Debug.Assert(m_decompressedData == null);

            m_decompressedData = new MemoryStream();
            BitmapDestination dest = new BitmapDestination(m_decompressedData);

            Jpeg jpeg = new Jpeg();

            jpeg.Decompress(compressedData, dest);
        }
Example #2
0
        private void FillDecompressedData()
        {
            Debug.Assert(m_decompressedData is null);

            m_decompressedData = new MemoryStream();
            var dest = new BitmapDestination(m_decompressedData);

            var jpeg = new Jpeg();

            jpeg.Decompress(CompressedData, dest);
        }
Example #3
0
        private void decompress()
        {
            if (TryInsertHuffmanTable(m_compressedData.GetBuffer(), (int)compressedData.Length, out var newData))
            {
                m_compressedData.Dispose();
                m_compressedData = new MemoryStream(newData);
            }
            Jpeg jpeg = new Jpeg();

            jpeg.Decompress(compressedData, new DecompressorToJpegImage(this));
        }
Example #4
0
        private void fillDecompressedData()
        {
            Debug.Assert(m_decompressedData == null);

            m_decompressedData = new MemoryStream();
            BitmapDestination dest = new BitmapDestination(m_decompressedData);

            Jpeg jpeg = new Jpeg();
            jpeg.Decompress(compressedData, dest);
        }
Example #5
0
 private void decompress()
 {
     Jpeg jpeg = new Jpeg();
     jpeg.Decompress(compressedData, new DecompressorToJpegImage(this));
 }
Example #6
0
        private void decompress()
        {
            Jpeg jpeg = new Jpeg();

            jpeg.Decompress(compressedData, new DecompressorToJpegImage(this));
        }
Example #7
0
        private void Decompress()
        {
            var jpeg = new Jpeg();

            jpeg.Decompress(CompressedData, new DecompressorToJpegImage(this));
        }
Example #8
0
        private void decompress(IDecompressDestination dst)
        {
            Jpeg jpeg = new Jpeg();

            jpeg.Decompress(compressedData, dst);
        }