Exemplo n.º 1
0
 public Bitmap()
 {
     for (int i = 0; i < 0x100; i++)
     {
         palette[i] = new Palette.Color(0xFF, 0x00, 0xFF);
     }
 }
Exemplo n.º 2
0
        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);
                }
            }
        }
Exemplo n.º 3
0
        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();
                }
            }
        }
Exemplo n.º 4
0
 public Gfx()
 {
     for (int i = 0; i < 0xFF; i++)
         palette[i] = new Palette.Color(0xFF, 0x00, 0xFF);
 }