Beispiel #1
0
 public static Palette Copy(Palette source) => new Palette(source);
Beispiel #2
0
 public Palette Copy() => Palette.Copy(this);
Beispiel #3
0
 public Picture(Bytemap bytemap, Palette palette)
 {
     _originalColours = palette.Copy();
     _palette         = palette.Copy();
     _bitmap          = Bytemap.Copy(bytemap);
 }
Beispiel #4
0
 public Picture(byte[,] bytes, Palette palette)
 {
     _originalColours = palette.Copy();
     _palette         = palette.Copy();
     _bitmap          = new Bytemap(bytes);
 }
Beispiel #5
0
 public Picture this[int left, int top, int width, int height] => new Picture(_bitmap[left, top, width, height], Palette.Copy());
Beispiel #6
0
 public Picture(int width, int height, Palette palette)
 {
     _originalColours = palette.Copy();
     _palette         = palette.Copy();
     _bitmap          = new Bytemap(width, height);
 }