Exemple #1
0
        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) });
        }
Exemple #2
0
 public EraserTool(BitmapManager bitmapManager)
 {
     ActionDisplay = "Draw to remove color from a pixel.";
     Toolbar       = new BasicToolbar();
     pen           = new PenTool(bitmapManager);
 }