diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2019-02-08 20:02:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-08 20:02:25 +0300 |
| commit | 3a88a3c7955601573b4938ea5c10431b8bceb714 (patch) | |
| tree | 961a87fe7fa997a8fc813f4a34900d72c48ac52f /MediaBrowser.Model/Drawing/ImageDimensions.cs | |
| parent | d6e98f9a50dcb1c6b1c9f96012298910d12b7f09 (diff) | |
| parent | e216702bcfdf3d6a90f59e11984098990f069043 (diff) | |
Merge pull request #822 from Bond-009/imagedimensions
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; + } + } +} |
