AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.2.5" />

.NET API 385,536 bytes

 HTMLCanvasElement

public sealed class HTMLCanvasElement : HTMLElement
Represents the HTML canvas element.
public uint Height { get; set; }

Gets or sets the displayed height of the canvas element.

public uint Width { get; set; }

Gets or sets the displayed width of the canvas element.

public RenderingContext GetContext(string contextId)

public void SetContext(RenderingContext context)

public bool SupportsContext(string contextId)

public void ToBlob(Action<object> callback, string type = null)

public string ToDataURL(string type = null)