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

21 lines
535 B
C#
Raw Normal View History

using System;
namespace ElectronNET.API.Entities
{
2020-05-06 19:14:34 -04:00
/// <summary>
///
/// </summary>
[Obsolete("Use ImageOptions instead.")]
public class ToPNGOptions
{
2020-05-06 19:14:34 -04:00
/// <summary>
/// Gets or sets the scalefactor
/// </summary>
public float ScaleFactor { get; set; } = 1.0f;
/// <summary>
/// Utility conversion for obsolete class
/// </summary>
public static implicit operator ImageOptions(ToPNGOptions o) => new () {ScaleFactor = o.ScaleFactor};
}
}