public LayerChange[] Earse(Layer layer, Coordinates[] coordinates, int toolSize) { Coordinates startingCords = coordinates.Length > 1 ? coordinates[1] : coordinates[0]; PenTool pen = new PenTool(); var pixels = pen.Draw(startingCords, coordinates[0], System.Windows.Media.Colors.Transparent, toolSize); return(new[] { new LayerChange(pixels, layer) }); }
public EraserTool(BitmapManager bitmapManager) { ActionDisplay = "Draw to remove color from a pixel."; Toolbar = new BasicToolbar(); pen = new PenTool(bitmapManager); }