blob: d2d2a06e85dd467f3cd6a941fbc340e9cec6ab2d (
plain)
| ofs | hex dump | ascii |
|---|
| 0000 | 4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00 b8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 | MZ......................@....... |
| 0020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 | ................................ |
| 0040 | 0e 1f ba 0e 00 b4 09 cd 21 b8 01 4c cd 21 54 68 69 73 20 70 72 6f 67 72 61 6d 20 63 61 6e 6e 6f | ........!..L.!This.program.canno |
| 0060 | 74 20 62 65 20 72 75 6e 20 69 6e 20 44 4f 53 20 6d 6f 64 65 2e 0d 0d 0a 24 00 00 00 00 00 00 00 | t.be.run.in.DOS.mode....$....... |
| 0080 | 50 45 00 00 4c 01 06 00 53 12 e7 4a 00 42 00 00 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);
/// <summary>
/// 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.
/// </summary>
long? MaxDifferencesThrow { get; set; }
}
}
|