public Bitmap()
 {
     for (int i = 0; i < 0x100; i++)
     {
         palette[i] = new Palette.Color(0xFF, 0x00, 0xFF);
     }
 }
        public void read(Reader reader, int rows = 2)
        {
            int palRows = rows > 0 ? rows : (((int)reader.BaseStream.Length / 8) / 6);

            colors = new Palette.Color[palRows][];
            for (int r = 0; r < palRows; r++)
            {
                colors[r] = new Palette.Color[COLORS_PER_ROW];
                for (int c = 0; c < COLORS_PER_ROW; ++c)
                {
                    colors[r][c] = new Palette.Color(reader);
                }
            }
        }
        public Palette(int rows = 2)
        {
            int palRows = rows;

            colors = new Palette.Color[palRows][];
            for (int r = 0; r < palRows; r++)
            {
                colors[r] = new Palette.Color[COLORS_PER_ROW];
                for (int c = 0; c < COLORS_PER_ROW; ++c)
                {
                    colors[r][c] = new Palette.Color();
                }
            }
        }
Exemple #4
0
 public Gfx()
 {
     for (int i = 0; i < 0xFF; i++)
         palette[i] = new Palette.Color(0xFF, 0x00, 0xFF);
 }