blob: 8e6e6c1f5135844af5ab4ae2b98e5161baadddf8 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Cropping.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// Defines the Cropping type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.Model
{
/// <summary>
/// The Cropping Model
/// </summary>
public class Cropping
{
/// <summary>
/// Initializes a new instance of the <see cref="Cropping"/> class.
/// </summary>
public Cropping()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Cropping"/> class.
/// Copy Constructor
/// </summary>
/// <param name="croping">
/// The croping.
/// </param>
public Cropping(Cropping croping)
{
this.Top = croping.Top;
this.Bottom = croping.Bottom;
this.Left = croping.Left;
this.Right = croping.Right;
}
/// <summary>
/// Initializes a new instance of the <see cref="Cropping"/> class.
/// </summary>
/// <param name="top">
/// The Top Value
/// </param>
/// <param name="bottom">
/// The Bottom Value
/// </param>
/// <param name="left">
/// The Left Value
/// </param>
/// <param name="right">
/// The Right Value
/// </param>
public Cropping(int top, int bottom, int left, int right)
{
this.Top = top;
this.Bottom = bottom;
this.Left = left;
this.Right = right;
}
/// <summary>
/// Gets or sets Top.
/// </summary>
public int Top { get; set; }
/// <summary>
/// Gets or sets Bottom.
/// </summary>
public int Bottom { get; set; }
/// <summary>
/// Gets or sets Left.
/// </summary>
public int Left { get; set; }
/// <summary>
/// Gets or sets Right.
/// </summary>
public int Right { get; set; }
/// <summary>
/// Clone this model
/// </summary>
/// <returns>
/// A Cloned copy
/// </returns>
public Cropping Clone()
{
return new Cropping
{
Top = this.Top,
Bottom = this.Bottom,
Left = this.Left,
Right = this.Right
};
}
}
}
|