Пример #1
0
        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));
        }
Пример #2
0
        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);
        }
Пример #3
0
 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);
 }
Пример #4
0
 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));
 }