MockedSinglePixelPenTool.cs 529 B

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