2020-04-26 19:21:29 -04:00
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
{
|
2020-05-06 19:14:34 -04:00
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </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 CreateFromBufferOptions
|
|
|
|
|
{
|
2020-05-06 19:14:34 -04:00
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// Gets or sets the width. Required for bitmap buffers passed to nativeImage.createFromBuffer.
|
2020-05-06 19:14:34 -04:00
|
|
|
/// </summary>
|
2020-05-06 19:05:21 -04:00
|
|
|
public int? Width { get; set; }
|
2020-05-06 19:14:34 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// Gets or sets the height. Required for bitmap buffers passed to nativeImage.createFromBuffer.
|
2020-05-06 19:14:34 -04:00
|
|
|
/// </summary>
|
2020-05-06 19:05:21 -04:00
|
|
|
public int? Height { get; set; }
|
2020-05-06 19:14:34 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// The image scale factor. Optional, defaults to 1.0.
|
2020-05-06 19:14:34 -04:00
|
|
|
/// </summary>
|
2020-05-06 19:05:21 -04:00
|
|
|
public float ScaleFactor { get; set; } = 1.0f;
|
2020-04-26 19:21:29 -04:00
|
|
|
}
|
|
|
|
|
}
|