Files
Electron.NET/ElectronNET.API/Entities/Size.cs

36 lines
920 B
C#
Raw Normal View History

2017-10-15 21:39:52 +02:00
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
2017-10-15 21:39:52 +02:00
public class Size
{
/// <summary>
/// Gets or sets the width.
/// </summary>
/// <value>
/// The width.
/// </value>
2017-10-15 21:39:52 +02:00
public int Width { get; set; }
/// <summary>
/// Gets or sets the height.
/// </summary>
/// <value>
/// The height.
/// </value>
2017-10-15 21:39:52 +02:00
public int Height { get; set; }
/// <summary>
/// Utility implicit conversion
/// </summary>
public static implicit operator SixLabors.ImageSharp.Size(Size s) =>
new (s.Width, s.Height);
/// <summary>
/// Utility implicit conversion
/// </summary>
public static implicit operator Size(SixLabors.ImageSharp.Size s) =>
new (){Height = s.Height, Width = s.Width};
2017-10-15 21:39:52 +02:00
}
}