using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.Video.DirectCapture
{
/// <summary>
/// Holds a resolution (width and height) for a DeviceCapture object.
/// </summary>
public class Resolution : INotifyPropertyChanged
{
/// <summary>
/// Initializes a new instance of Resolution.
/// </summary>
public Resolution()
{
}
/// <summary>
/// Initializes a new instance of Resoultion.
/// </summary>
/// <param name="width">desired frame width.</param>
/// <param name="height">desired frame height.</param>
public Resolution(int width, int height)
: this()
{
Width = width;
Height = height;
}
private int _width;
/// <summary>
/// Gets or sets the current frame width.
/// </summary>
public int Width
{
get { return _width; }
set { _width = value; RaisePropertyChanged("Width"); }
}
private int _height;
/// <summary>
/// Gets or sets the current frame height.
/// </summary>
public int Height
{
get { return _height; }
set { _height = value; RaisePropertyChanged("Height"); }
}
/// <summary>
/// Returns a string representation of the current resolution.
/// </summary>
/// <returns></returns>
public overr