示例#1
0
        private void Read()
        {
            Stream file = new FileStream(inputPath, FileMode.Open);

            byte[] pngId = new byte[8];
            file.Read(pngId, 0, 8);
            offset   += pngId.Length;
            chunkList = new ChunkList(file, offset);
            file.Close();
        }
示例#2
0
 internal Compressor(ChunkList chunkList)
 {
     idat = chunkList.CombineIDAT();
 }
示例#3
0
 internal void UpdateChunkList(ChunkList chunkList)
 {
     chunkList.SetIDAT(idat);
 }
示例#4
0
 internal ChunkList(ChunkList chunkList)
 {
     this.chunkCount  = chunkList.chunkCount;
     this.chunkList   = chunkList.chunkList;
     this.indexOfIDAT = chunkList.indexOfIDAT;
 }