Permalink
Browse files

Add unit tests for Pixel Blend Operations.

  • Loading branch information...
1 parent 47542d6 commit 1c636b0375983b8ca9907b09c045ef4a2e0e7f53 @jpobst jpobst committed Dec 30, 2012
Showing with 1,034 additions and 0 deletions.
  1. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/AdditiveBlendOpTest.cs
  2. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/ColorBurnBlendOpTest.cs
  3. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/ColorDodgeBlendOpTest.cs
  4. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/DarkenBlendOpTest.cs
  5. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/DifferenceBlendOpTest.cs
  6. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/GlowBlendOpTest.cs
  7. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/LightenBlendOpTest.cs
  8. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/MultiplyBlendOpTest.cs
  9. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/NegationBlendOpTest.cs
  10. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/NormalBlendOpTest.cs
  11. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/OverlayBlendOpTest.cs
  12. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/ReflectBlendOpTest.cs
  13. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/ScreenBlendOpTest.cs
  14. +66 −0 Pinta.ImageManipulation.UnitTests/BlendOperations/XorBlendOpTest.cs
  15. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/additiveblend1.png
  16. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/additiveblend2.png
  17. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colorblend1.png
  18. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colorblend2.png
  19. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colorburnblend1.png
  20. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colorburnblend2.png
  21. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colordodgeblend1.png
  22. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colordodgeblend2.png
  23. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/darkenblend1.png
  24. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/darkenblend2.png
  25. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/differenceblend1.png
  26. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/differenceblend2.png
  27. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/glowblend1.png
  28. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/glowblend2.png
  29. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/lightenblend1.png
  30. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/lightenblend2.png
  31. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/multiplyblend1.png
  32. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/multiplyblend2.png
  33. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/negationblend1.png
  34. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/negationblend2.png
  35. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/normalblend1.png
  36. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/normalblend2.png
  37. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/overlayblend1.png
  38. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/overlayblend2.png
  39. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/reflectblend1.png
  40. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/reflectblend2.png
  41. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/screenblend1.png
  42. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/screenblend2.png
  43. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/xorblend1.png
  44. BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/xorblend2.png
  45. +110 −0 Pinta.ImageManipulation.UnitTests/Pinta.ImageManipulation.UnitTests.csproj
  46. BIN Pinta.ImageManipulation.UnitTests/SourceBitmaps/blend1.png
  47. BIN Pinta.ImageManipulation.UnitTests/SourceBitmaps/blend2.png
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/AdditiveBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// AdditiveBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class AdditiveBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void AdditiveBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new AdditiveBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "additiveblend1.png");
+ }
+
+ [TestMethod]
+ public void AdditiveBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new AdditiveBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "additiveblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/ColorBurnBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// ColorBurnBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class ColorBurnBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void ColorBurnBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new ColorBurnBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "colorburnblend1.png");
+ }
+
+ [TestMethod]
+ public void ColorBurnBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new ColorBurnBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "colorburnblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/ColorDodgeBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// ColorDodgeBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class ColorDodgeBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void ColorDodgeBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new ColorDodgeBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "colordodgeblend1.png");
+ }
+
+ [TestMethod]
+ public void ColorDodgeBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new ColorDodgeBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "colordodgeblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/DarkenBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// DarkenBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class DarkenBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void DarkenBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new DarkenBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "darkenblend1.png");
+ }
+
+ [TestMethod]
+ public void DarkenBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new DarkenBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "darkenblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/DifferenceBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// DifferenceBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class DifferenceBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void DifferenceBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new DifferenceBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "differenceblend1.png");
+ }
+
+ [TestMethod]
+ public void DifferenceBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new DifferenceBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "differenceblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/GlowBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// GlowBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class GlowBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void GlowBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new GlowBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "glowblend1.png");
+ }
+
+ [TestMethod]
+ public void GlowBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new GlowBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "glowblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/LightenBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// LightenBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class LightenBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void LightenBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new LightenBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "lightenblend1.png");
+ }
+
+ [TestMethod]
+ public void LightenBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new LightenBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "lightenblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/MultiplyBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// MultiplyBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class MultiplyBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void MultiplyBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new MultiplyBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "multiplyblend1.png");
+ }
+
+ [TestMethod]
+ public void MultiplyBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new MultiplyBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "multiplyblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/NegationBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// NegationBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class NegationBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void NegationBlendOpOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new NegationBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "negationblend1.png");
+ }
+
+ [TestMethod]
+ public void NegationBlendOpOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new NegationBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "negationblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/NormalBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// NormalBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class NormalBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void NormalBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new NormalBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "normalblend1.png");
+ }
+
+ [TestMethod]
+ public void NormalBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new NormalBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "normalblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/OverlayBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// OverlayBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class OverlayBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void OverlayBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new OverlayBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "overlayblend1.png");
+ }
+
+ [TestMethod]
+ public void OverlayBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new OverlayBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "overlayblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/ReflectBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// ReflectBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class ReflectBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void ReflectBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new ReflectBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "reflectblend1.png");
+ }
+
+ [TestMethod]
+ public void ReflectBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new ReflectBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "reflectblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/ScreenBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// ScreenBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class ScreenBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void ScreenBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new ScreenBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "screenblend1.png");
+ }
+
+ [TestMethod]
+ public void ScreenBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new ScreenBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "screenblend2.png");
+ }
+ }
+}
View
66 Pinta.ImageManipulation.UnitTests/BlendOperations/XorBlendOpTest.cs
@@ -0,0 +1,66 @@
+//
+// XorBlendOpTest.cs
+//
+// Author:
+// Jonathan Pobst <monkey@jpobst.com>
+//
+// Copyright (c) 2012 Jonathan Pobst
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Pinta.ImageManipulation.PixelBlendOperations;
+
+namespace Pinta.ImageManipulation.UnitTests.BlendOperations
+{
+ [TestClass]
+ public class XorBlendOpTest : BaseTest
+ {
+ [TestMethod]
+ public void XorBlendOp1 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new XorBlendOp ();
+ op.Apply (lhs_wrap, rhs_wrap);
+
+ Compare (rhs, "xorblend1.png");
+ }
+
+ [TestMethod]
+ public void XorBlendOp2 ()
+ {
+ var lhs = GetSourceImage ("blend1.png");
+ var rhs = GetSourceImage ("blend2.png");
+
+ var lhs_wrap = new BitmapWrapper (lhs);
+ var rhs_wrap = new BitmapWrapper (rhs);
+
+ var op = new XorBlendOp ();
+ op.Apply (rhs_wrap, lhs_wrap);
+
+ Compare (lhs, "xorblend2.png");
+ }
+ }
+}
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/additiveblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/additiveblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colorblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colorblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colorburnblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colorburnblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colordodgeblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/colordodgeblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/darkenblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/darkenblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/differenceblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/differenceblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/glowblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/glowblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/lightenblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/lightenblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/multiplyblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/multiplyblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/negationblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/negationblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/normalblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/normalblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/overlayblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/overlayblend2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/reflectblend1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/reflectblend2.png
Diff not rendered.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/screenblend1.png
Diff not rendered.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/screenblend2.png
Diff not rendered.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/xorblend1.png
Diff not rendered.
View
BIN Pinta.ImageManipulation.UnitTests/ExpectedBitmaps/xorblend2.png
Diff not rendered.
View
110 Pinta.ImageManipulation.UnitTests/Pinta.ImageManipulation.UnitTests.csproj
@@ -55,6 +55,20 @@
</Otherwise>
</Choose>
<ItemGroup>
+ <Compile Include="BlendOperations\AdditiveBlendOpTest.cs" />
+ <Compile Include="BlendOperations\ColorBurnBlendOpTest.cs" />
+ <Compile Include="BlendOperations\ColorDodgeBlendOpTest.cs" />
+ <Compile Include="BlendOperations\XorBlendOpTest.cs" />
+ <Compile Include="BlendOperations\ScreenBlendOpTest.cs" />
+ <Compile Include="BlendOperations\ReflectBlendOpTest.cs" />
+ <Compile Include="BlendOperations\OverlayBlendOpTest.cs" />
+ <Compile Include="BlendOperations\NormalBlendOpTest.cs" />
+ <Compile Include="BlendOperations\NegationBlendOpTest.cs" />
+ <Compile Include="BlendOperations\MultiplyBlendOpTest.cs" />
+ <Compile Include="BlendOperations\LightenBlendOpTest.cs" />
+ <Compile Include="BlendOperations\GlowBlendOpTest.cs" />
+ <Compile Include="BlendOperations\DifferenceBlendOpTest.cs" />
+ <Compile Include="BlendOperations\DarkenBlendOpTest.cs" />
<Compile Include="Effects\AutoLevelEffectTest.cs" />
<Compile Include="Effects\BlackAndWhiteEffectTest.cs" />
<Compile Include="Effects\BrightnessContrastEffectTest.cs" />
@@ -102,6 +116,12 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
+ <Content Include="ExpectedBitmaps\additiveblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\additiveblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\autolevel1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -120,6 +140,36 @@
<Content Include="ExpectedBitmaps\bulge2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="ExpectedBitmaps\colorblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\colorblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\colorburnblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\colorburnblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\colordodgeblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\colordodgeblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\darkenblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\darkenblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\differenceblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\differenceblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\edgedetect1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -156,6 +206,12 @@
<Content Include="ExpectedBitmaps\glow2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="ExpectedBitmaps\glowblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\glowblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\huesaturation1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -177,6 +233,12 @@
<Content Include="ExpectedBitmaps\juliafractal2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="ExpectedBitmaps\lightenblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\lightenblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\mandelbrotfractal1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -195,6 +257,24 @@
<Content Include="ExpectedBitmaps\motionblur2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="ExpectedBitmaps\multiplyblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\multiplyblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\negationblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\negationblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\normalblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\normalblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\oilpainting1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -207,6 +287,12 @@
<Content Include="ExpectedBitmaps\outline2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="ExpectedBitmaps\overlayblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\overlayblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\pencilsketch1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -243,12 +329,24 @@
<Content Include="ExpectedBitmaps\reducenoise2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="ExpectedBitmaps\reflectblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\reflectblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\relief1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ExpectedBitmaps\relief2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="ExpectedBitmaps\screenblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\screenblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\sepia1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -282,12 +380,24 @@
<Content Include="ExpectedBitmaps\unfocus2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="ExpectedBitmaps\xorblend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ExpectedBitmaps\xorblend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="ExpectedBitmaps\zoomblur1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ExpectedBitmaps\zoomblur2.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="SourceBitmaps\blend1.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="SourceBitmaps\blend2.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="SourceBitmaps\input.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
View
BIN Pinta.ImageManipulation.UnitTests/SourceBitmaps/blend1.png
Diff not rendered.
View
BIN Pinta.ImageManipulation.UnitTests/SourceBitmaps/blend2.png
Diff not rendered.

0 comments on commit 1c636b0

Please sign in to comment.