Esempio n. 1
0
        public override void AfterAutomaticRead(IReader rdr)
        {
            if (Length.Value % 3 != 0)
            {
                throw new FileParserException("PLTE: length not a multiple of 3");
            }

            Entries = new ChunkList <RGBTriplet>(ChunkListRepeat.ToCount, Length.Value / 3);
            Entries.ReadAll(rdr);

            base.AfterAutomaticRead(rdr);
        }