private void ReadPalette256Chunk(BinaryReader reader) { short nbrPackets = reader.ReadInt16(); byte skipCount = reader.ReadByte(); byte copyCount = reader.ReadByte(); Trace.Assert(copyCount == 0); _palette = new FliPalette(reader.ReadBytes(768)); }
private void ReadPalette64Chunk(BinaryReader reader) { short nbrPackets = reader.ReadInt16(); byte skipCount = reader.ReadByte(); byte copyCount = reader.ReadByte(); Trace.Assert(copyCount == 0); byte[] palette = reader.ReadBytes(768); for (int i = 0; i < 256; i++) { palette[i] *= 4; } _palette = new FliPalette(palette); }
private void ReadPalette64Chunk(BinaryReader reader) { short nbrPackets = reader.ReadInt16(); byte skipCount = reader.ReadByte(); byte copyCount = reader.ReadByte(); Trace.Assert(copyCount == 0); byte[] palette = reader.ReadBytes(768); for (int i = 0; i < 256; i++) palette[i] *= 4; _palette = new FliPalette(palette); }