MockedSinglePixelPenTool.cs 619 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using System.Windows.Media;
  3. using PixiEditor.Models.DataHolders;
  4. using PixiEditor.Models.Layers;
  5. using PixiEditor.Models.Position;
  6. using PixiEditor.Models.Tools;
  7. namespace PixiEditorTests.ModelsTests.ControllersTests
  8. {
  9. public class MockedSinglePixelPenTool : BitmapOperationTool
  10. {
  11. public override string Tooltip => "";
  12. public override LayerChange[] Use(Layer layer, List<Coordinates> mouseMove, Color color)
  13. {
  14. return Only(BitmapPixelChanges.FromSingleColoredArray(new[] { mouseMove[0] }, color), layer.LayerGuid);
  15. }
  16. }
  17. }