using System.Text.Json.Serialization; namespace ElectronNET.API.Entities { /// /// /// /// Up-to-date with Electron API 39.2 public class AddRepresentationOptions { /// /// Gets or sets the width in pixels. Defaults to 0. Required if a bitmap buffer is specified as . /// public int? Width { get; set; } /// /// Gets or sets the height in pixels. Defaults to 0. Required if a bitmap buffer is specified as . /// public int? Height { get; set; } /// /// Gets or sets the image scale factor. Defaults to 1.0. /// public float ScaleFactor { get; set; } = 1.0f; /// /// Gets or sets the buffer containing the raw image data. /// public byte[] Buffer { get; set; } /// /// Gets or sets the data URL containing a base 64 encoded PNG or JPEG image. /// public string DataUrl { get; set; } } }