2020-05-06 19:14:34 -04:00
|
|
|
|
namespace ElectronNET.API.Entities
|
2020-04-26 19:21:29 -04:00
|
|
|
|
{
|
2020-05-06 19:14:34 -04:00
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Options for NativeImage.resize: optional width/height and quality.
|
2020-05-06 19:14:34 -04:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2020-04-26 19:21:29 -04:00
|
|
|
|
public class ResizeOptions
|
|
|
|
|
|
{
|
2020-05-06 19:14:34 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the width
|
|
|
|
|
|
/// </summary>
|
2020-04-26 19:21:29 -04:00
|
|
|
|
public int? Width { get; set; }
|
2020-05-06 19:14:34 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the height
|
|
|
|
|
|
/// </summary>
|
2020-04-26 19:21:29 -04:00
|
|
|
|
public int? Height { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// 'good', 'better', or 'best'. Default is 'best'.
|
2020-04-26 19:21:29 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Quality { get; set; } = "best";
|
|
|
|
|
|
}
|
2025-11-15 08:05:31 +01:00
|
|
|
|
}
|