public static Palette Copy(Palette source) => new Palette(source);
public Palette Copy() => Palette.Copy(this);
public Picture(Bytemap bytemap, Palette palette) { _originalColours = palette.Copy(); _palette = palette.Copy(); _bitmap = Bytemap.Copy(bytemap); }
public Picture(byte[,] bytes, Palette palette) { _originalColours = palette.Copy(); _palette = palette.Copy(); _bitmap = new Bytemap(bytes); }
public Picture this[int left, int top, int width, int height] => new Picture(_bitmap[left, top, width, height], Palette.Copy());
public Picture(int width, int height, Palette palette) { _originalColours = palette.Copy(); _palette = palette.Copy(); _bitmap = new Bytemap(width, height); }