Example #1
0
        public LayerChange[] Erase(Layer layer, Coordinates[] coordinates, int toolSize)
        {
            Coordinates        startingCords = coordinates.Length > 1 ? coordinates[1] : coordinates[0];
            BitmapPixelChanges pixels        = pen.Draw(startingCords, coordinates[0], System.Windows.Media.Colors.Transparent, toolSize);

            return(Only(pixels, layer));
        }
Example #2
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) });
        }