private void Handle_IDAT(PNGChunk chunk) { IDATChunk idatC = new IDATChunk(); idatC.ChunkData = chunk.ChunkData; IDATList.Add(idatC); }
private void Handle_IDAT(PNGChunk chunk) { IDATChunk idatC = new IDATChunk(); idatC.ChunkData = chunk.ChunkData; IDATList.Add(idatC); if (frames.Count > 1) { throw new ApplicationException("IDAT chunk encountered out of order"); } else if (frames.Count == 1) { Frame f = frames.First(); f.AddChunk(idatC); } }