using System; namespace ElectronNET.API.Entities { /// /// /// [Obsolete("Use CreateOptions instead")] public class CreateFromBitmapOptions { /// /// Gets or sets the width /// public int? Width { get; set; } /// /// Gets or sets the height /// public int? Height { get; set; } /// /// Gets or sets the scalefactor /// public float ScaleFactor { get; set; } = NativeImage.DefaultScaleFactor; /// /// Utility conversion for obsolete class /// public static implicit operator CreateOptions(CreateFromBitmapOptions o) => new() {Width = o.Width, Height = o.Height, ScaleFactor = o.ScaleFactor}; } }