Files
Electron.NET/src/ElectronNET.API/API/Entities/ResizeOptions.cs

24 lines
660 B
C#
Raw Normal View History

2020-05-06 19:14:34 -04:00
namespace ElectronNET.API.Entities
{
2020-05-06 19:14:34 -04:00
/// <summary>
/// Options for NativeImage.resize: optional width/height and quality.
2020-05-06 19:14:34 -04:00
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class ResizeOptions
{
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; }
/// <summary>
/// 'good', 'better', or 'best'. Default is 'best'.
/// </summary>
public string Quality { get; set; } = "best";
}
2025-11-15 08:05:31 +01:00
}