Browse Source

Update PixiEditor/Models/Tools/BitmapOperationTool.cs

Co-authored-by: CPKreuz <[email protected]>
Rene Brokholm 4 years ago
parent
commit
b197dc200b
1 changed files with 31 additions and 31 deletions
  1. 31 31
      PixiEditor/Models/Tools/BitmapOperationTool.cs

+ 31 - 31
PixiEditor/Models/Tools/BitmapOperationTool.cs

@@ -1,36 +1,36 @@
 using System;
 using System.Collections.Generic;
 using System.Windows.Documents;
-using System.Windows.Media;
-using PixiEditor.Models.DataHolders;
-using PixiEditor.Models.Layers;
-using PixiEditor.Models.Position;
-
-namespace PixiEditor.Models.Tools
-{
-    public abstract class BitmapOperationTool : Tool
-    {
-        public bool RequiresPreviewLayer { get; set; }
-
-        public bool ClearPreviewLayerOnEachIteration { get; set; } = true;
+using System.Windows.Media;
+using PixiEditor.Models.DataHolders;
+using PixiEditor.Models.Layers;
+using PixiEditor.Models.Position;
 
-        public bool UseDefaultUndoMethod { get; set; } = true;
-        public virtual bool UsesShift { get => true; }
-
-        private readonly LayerChange[] onlyLayerArr = new LayerChange[] { new LayerChange(BitmapPixelChanges.Empty, Guid.Empty) };
+namespace PixiEditor.Models.Tools
+{
+    public abstract class BitmapOperationTool : Tool
+    {
+        public bool RequiresPreviewLayer { get; set; }
 
-        public abstract LayerChange[] Use(Layer layer, List<Coordinates> mouseMove, Color color);
-
-        protected LayerChange[] Only(BitmapPixelChanges changes, Layer layer)
-        {
-            onlyLayerArr[0] = new LayerChange(changes, layer);
-            return onlyLayerArr;
-        }
-
-        protected LayerChange[] Only(BitmapPixelChanges changes, Guid layerGuid)
-        {
-            onlyLayerArr[0] = new LayerChange(changes, layerGuid);
-            return onlyLayerArr;
-        }
-    }
-}
+        public bool ClearPreviewLayerOnEachIteration { get; set; } = true;
+
+        public bool UseDefaultUndoMethod { get; set; } = true;
+        public virtual bool UsesShift => true;
+
+        private readonly LayerChange[] onlyLayerArr = new LayerChange[] { new LayerChange(BitmapPixelChanges.Empty, Guid.Empty) };
+
+        public abstract LayerChange[] Use(Layer layer, List<Coordinates> mouseMove, Color color);
+
+        protected LayerChange[] Only(BitmapPixelChanges changes, Layer layer)
+        {
+            onlyLayerArr[0] = new LayerChange(changes, layer);
+            return onlyLayerArr;
+        }
+
+        protected LayerChange[] Only(BitmapPixelChanges changes, Guid layerGuid)
+        {
+            onlyLayerArr[0] = new LayerChange(changes, layerGuid);
+            return onlyLayerArr;
+        }
+    }
+}