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
示例#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);
        }
示例#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);
        }
示例#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));
        }
示例#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);
        }
示例#5
0
 private void decompress()
 {
     Jpeg jpeg = new Jpeg();
     jpeg.Decompress(compressedData, new DecompressorToJpegImage(this));
 }
示例#6
0
        private void decompress()
        {
            Jpeg jpeg = new Jpeg();

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

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

            jpeg.Decompress(compressedData, dst);
        }