Beispiel #1
0
 public static Bytemap ColourReplace(this Bytemap bytemap, params (byte From, byte To)[] fromToColours)
Beispiel #2
0
 public static Bytemap ColourReplace(this Bytemap bytemap, byte from, byte to) => ColourReplace(bytemap, (from, to));
Beispiel #3
0
 public static Bytemap AddLayer(this Bytemap bytemap, Bytemap layer, Point point) => AddLayer(bytemap, layer, point.X, point.Y);
Beispiel #4
0
 public static Bytemap AddLayer(this Bytemap bytemap, ISprite layer, int left = 0, int top = 0) => AddLayer(bytemap, layer.Bitmap, left, top);
Beispiel #5
0
 public static Bytemap AddLayer(this Bytemap bytemap, ISprite layer, Point point) => AddLayer(bytemap, layer.Bitmap, point.X, point.Y);
Beispiel #6
0
 public static Bytemap Crop(this Bytemap bytemap, int left, int top, int width, int height) => bytemap[left, top, width, height];