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

33 lines
876 B
C#
Raw Normal View History

using System;
namespace ElectronNET.API.Entities
{
2020-05-06 19:14:34 -04:00
/// <summary>
///
/// </summary>
[Obsolete("Use CreateOptions instead")]
public class CreateFromBitmapOptions
{
2020-05-06 19:14:34 -04:00
/// <summary>
/// Gets or sets the width
/// </summary>
public int? Width { get; set; }
2020-05-06 19:14:34 -04:00
/// <summary>
/// Gets or sets the height
/// </summary>
public int? Height { get; set; }
2020-05-06 19:14:34 -04:00
/// <summary>
/// Gets or sets the scalefactor
/// </summary>
public float ScaleFactor { get; set; } = NativeImage.DefaultScaleFactor;
/// <summary>
/// Utility conversion for obsolete class
/// </summary>
public static implicit operator CreateOptions(CreateFromBitmapOptions o) => new()
{Width = o.Width, Height = o.Height, ScaleFactor = o.ScaleFactor};
}
}