public Gfx() { for (int i = 0; i < 0xFF; i++) { palette[i] = new Palette.Color(0x00, 0x00, 0x00); } }
public Bitmap() { for (int i = 0; i < 0x100; i++) { palette[i] = new Palette.Color(0x00, 0x00, 0x00); } }
public void read(Reader reader, int rows = 2) { int palColumns = rows > 0 ? rows : (((int)reader.BaseStream.Length / 8) / 6); colors = new Palette.Color[palColumns][]; for (int r = 0; r < palColumns; 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(); } } }