using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.RemoteDesktop.CaptureMethods
{
/// <summary>
/// Represents a standard GDI screen capture method.
/// </summary>
/// <seealso cref="Tango.RemoteDesktop.ICaptureMethod" />
public class GdiScreenCapture : ICaptureMethod
{
/// <summary>
/// Gets the desktop bitmap.
/// </summary>
/// <param name="region">The capture region.</param>
/// <returns></returns>
public Bitmap GetDesktopBitmap(CaptureRegion region)
{
var bitmap = new Bitmap(region.Width, region.Height, System