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(); }
internal Compressor(ChunkList chunkList) { idat = chunkList.CombineIDAT(); }
internal void UpdateChunkList(ChunkList chunkList) { chunkList.SetIDAT(idat); }
internal ChunkList(ChunkList chunkList) { this.chunkCount = chunkList.chunkCount; this.chunkList = chunkList.chunkList; this.indexOfIDAT = chunkList.indexOfIDAT; }