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