using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.RemoteDesktop { /// /// Represents a bitmap comparison engine which returns a difference object of type between a previous and current bitmaps. /// /// Type of frame public interface IBitmapComparer where TFrame : IFrame { /// /// Creates the difference result from two bitmaps. /// /// The previous bitmap. /// The current bitmap. /// BitmapComparerResult CreateDifference(Bitmap previousBitmap, Bitmap currentBitmap); /// /// When max number of differences reached, the comparer will immediately return the current difference frame. /// This should enforce the screen capture engine to report 'No Difference Available'. /// The value of null (default) means infinite. /// long? MaxDifferencesThrow { get; set; } } }