mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-13 13:44:57 +00:00
21 lines
535 B
C#
21 lines
535 B
C#
using System;
|
|
|
|
namespace ElectronNET.API.Entities
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[Obsolete("Use ImageOptions instead.")]
|
|
public class ToPNGOptions
|
|
{
|
|
/// <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};
|
|
}
|
|
}
|