using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.RemoteDesktop
{
/// <summary>
/// Represents a screen capture engine.
/// </summary>
/// <seealso cref="System.IDisposable" />
public interface IScreenCaptureEngine : IDisposable
{
/// <summary>
/// Gets or sets the screen capture method.
/// </summary>
ICaptureMethod CaptureMethod { get; set; }
/// <summary>
/// Gets or sets the screen capture region.
/// </summary>
CaptureRegion CaptureRegion { get; set; }
/// <summary>
/// Gets a value indicating whether this instance is currently capturing.
/// </summary>
bool IsStarted { get; }
/// <summary>
/// Gets or sets the frame rate per second.
/// </summary>
int FrameRate { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to include the cursor when capturing.
/// </summary>
bool CaptureCursor { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to enable image comparison.
/// </summary>
bool EnableComparer { get; set; }
/// <summary>
/// Start capturing.
/// </summary>
void Start();
/// <summary>
/// Stop capturing.
/// </summary>
void Stop();
}
/// <summary>
/// Represents a screen capture engine.
/// </summary>
/// <typeparam name="TFrame">The type of the frame.</typeparam>
/// <seealso cref="System.IDisposable" />
public interface IScreenCaptureEngine<TFrame> : IScreenCaptureEngine where TFrame : IFrame
{
/// <summary>
/// Occurs when a new screen frame is available.
/// </summary>
event EventHandler<ScreenCaptureFrameReceivedEventArgs<TFrame>> FrameReceived;
/// <summary>
/// Gets or sets the bitmap comparer.
/// </summary>
IBitmapComparer<TFrame> Comparer { get; set; }
}
}