BitmapOperationTool.cs 672 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Windows.Documents;
  4. using System.Windows.Media;
  5. using PixiEditor.Models.DataHolders;
  6. using PixiEditor.Models.Layers;
  7. using PixiEditor.Models.Position;
  8. namespace PixiEditor.Models.Tools
  9. {
  10. public abstract class BitmapOperationTool : Tool
  11. {
  12. public bool RequiresPreviewLayer { get; set; }
  13. public bool ClearPreviewLayerOnEachIteration { get; set; } = true;
  14. public bool UseDefaultUndoMethod { get; set; } = true;
  15. public virtual bool UsesShift => true;
  16. public abstract void Use(Layer layer, List<Coordinates> mouseMove, Color color);
  17. }
  18. }