aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Experiments/Tango.RemoteDesktop/Tango.ScreenCapture/IScreenCaptureFrame.cs
blob: 496847db00dfcba4348ac32942271042f09f1a6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace Tango.ScreenCapture
{
    public interface IScreenCaptureFrame<T> : IDisposable where T : class, IDisposable
    {
        int Width { get; }
        int Height { get; }
        bool DifferenceAvailable { get; }
        BitmapSource ToBitmapSource();
        Bitmap ToBitmap();
        T ToDifference();
        byte[] ToArray();
        byte[] ToJpeg(int quality = 100);
        byte[] ToPng();
        MemoryStream ToStream();
    }
}