BitmapOperationTool.cs 692 B

1234567891011121314151617181920212223
  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. using SkiaSharp;
  9. namespace PixiEditor.Models.Tools
  10. {
  11. public abstract class BitmapOperationTool : Tool
  12. {
  13. public bool RequiresPreviewLayer { get; set; }
  14. public bool ClearPreviewLayerOnEachIteration { get; set; } = true;
  15. public bool UseDefaultUndoMethod { get; set; } = true;
  16. public virtual bool UsesShift => true;
  17. public abstract void Use(Layer layer, List<Coordinates> mouseMove, SKColor color);
  18. }
  19. }