aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.RemoteDesktop/IBitmapComparer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.RemoteDesktop/IBitmapComparer.cs')
-rw-r--r--Software/Visual_Studio/Tango.RemoteDesktop/IBitmapComparer.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.RemoteDesktop/IBitmapComparer.cs b/Software/Visual_Studio/Tango.RemoteDesktop/IBitmapComparer.cs
new file mode 100644
index 000000000..6e1f8e999
--- /dev/null
+++ b/Software/Visual_Studio/Tango.RemoteDesktop/IBitmapComparer.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.RemoteDesktop
+{
+ /// <summary>
+ /// Represents a bitmap comparison engine which returns a difference object of type <see cref="TFrame"/> between a previous and current bitmaps.
+ /// </summary>
+ /// <typeparam name="TFrame">Type of frame</typeparam>
+ public interface IBitmapComparer<TFrame> where TFrame : IFrame
+ {
+ /// <summary>
+ /// Creates the difference result from two bitmaps.
+ /// </summary>
+ /// <param name="previousBitmap">The previous bitmap.</param>
+ /// <param name="currentBitmap">The current bitmap.</param>
+ /// <returns></returns>
+ BitmapComparerResult<TFrame> CreateDifference(Bitmap previousBitmap, Bitmap currentBitmap);
+ }
+}