diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-02-05 19:53:50 +0100 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-02-05 19:53:50 +0100 |
| commit | e216702bcfdf3d6a90f59e11984098990f069043 (patch) | |
| tree | dbfc1809d2d09d08ed70161adb166a1faa3f5c73 /MediaBrowser.Model/Drawing/ImageDimensions.cs | |
| parent | 0ef2b46106937c8acbab8e2a6a1e08affb823d31 (diff) | |
Complete rename ImageSize -> ImageDimensions
Diffstat (limited to 'MediaBrowser.Model/Drawing/ImageDimensions.cs')
| -rw-r--r-- | MediaBrowser.Model/Drawing/ImageDimensions.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Drawing/ImageDimensions.cs b/MediaBrowser.Model/Drawing/ImageDimensions.cs new file mode 100644 index 000000000..e7805ac49 --- /dev/null +++ b/MediaBrowser.Model/Drawing/ImageDimensions.cs @@ -0,0 +1,36 @@ +namespace MediaBrowser.Model.Drawing +{ + /// <summary> + /// Struct ImageDimensions + /// </summary> + public struct ImageDimensions + { + /// <summary> + /// Gets or sets the height. + /// </summary> + /// <value>The height.</value> + public int Height { get; set; } + + /// <summary> + /// Gets or sets the width. + /// </summary> + /// <value>The width.</value> + public int Width { get; set; } + + public bool Equals(ImageDimensions size) + { + return Width.Equals(size.Width) && Height.Equals(size.Height); + } + + public override string ToString() + { + return string.Format("{0}-{1}", Width, Height); + } + + public ImageDimensions(int width, int height) + { + Width = width; + Height = height; + } + } +} |
