Пример #1
0
        public void Read(Reader reader)
        {
            int palColumns = ((int)reader.BaseStream.Length / 8) / 6;

            Colors = new PaletteColor[palColumns][];
            for (int i = 0; i < palColumns; i++)
            {
                Colors[i] = new PaletteColor[COLORS_PER_COLUMN];
                for (int j = 0; j < COLORS_PER_COLUMN; ++j)
                {
                    Colors[i][j] = new PaletteColor(reader);
                }
            }
        }
Пример #2
0
        public void Read(Reader reader, int Columns)
        {
            int palColumns = Columns;

            Colors = new PaletteColor[palColumns][];
            for (int i = 0; i < palColumns; i++)
            {
                Colors[i] = new PaletteColor[COLORS_PER_COLUMN];
                for (int j = 0; j < COLORS_PER_COLUMN; ++j)
                {
                    Colors[i][j] = new PaletteColor(reader);
                }                                           //Console.WriteLine(Colors[i][j].R + Colors[i][j].G + Colors[i][j].B); }
            }
        }