EarserTool.cs 590 B

1234567891011121314151617181920
  1. using PixiEditor.Models.Layers;
  2. using PixiEditor.Models.Position;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. using System.Windows.Media;
  7. namespace PixiEditor.Models.Tools.Tools
  8. {
  9. public class EarserTool : Tool
  10. {
  11. public override ToolType ToolType => ToolType.Earser;
  12. public override BitmapPixelChanges Use(Layer layer, Coordinates[] coordinates, Color color, int toolSize)
  13. {
  14. PenTool pen = new PenTool();
  15. return pen.Draw(coordinates[0], System.Windows.Media.Colors.Transparent, toolSize);
  16. }
  17. }
  18. }