// --------------------------------------------------------------------------------------------------------------------
//
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
//
//
// Defines the Cropping type.
//
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Interop.Model
{
///
/// The Cropping Model
///
public class Cropping
{
///
/// Initializes a new instance of the class.
///
public Cropping()
{
}
///
/// Initializes a new instance of the class.
/// Copy Constructor
///
///
/// The croping.
///
public Cropping(Cropping croping)
{
this.Top = croping.Top;
this.Bottom = croping.Bottom;
this.Left = croping.Left;
this.Right = croping.Right;
}
///
/// Initializes a new instance of the class.
///
///
/// The Top Value
///
///
/// The Bottom Value
///
///
/// The Left Value
///
///
/// The Right Value
///
public Cropping(int top, int bottom, int left, int right)
{
this.Top = top;
this.Bottom = bottom;
this.Left = left;
this.Right = right;
}
///
/// Gets or sets Top.
///
public int Top { get; set; }
///
/// Gets or sets Bottom.
///
public int Bottom { get; set; }
///
/// Gets or sets Left.
///
public int Left { get; set; }
///
/// Gets or sets Right.
///
public int Right { get; set; }
///
/// Clone this model
///
///
/// A Cloned copy
///
public Cropping Clone()
{
return new Cropping
{
Top = this.Top,
Bottom = this.Bottom,
Left = this.Left,
Right = this.Right
};
}
}
}