Interface ICanvasRenderingContext2D
- Namespace
- AngleSharp.Media.Dom
- Assembly
- AngleSharp.dll
Represents the canvas rendering context. More information is available at the WHATWG homepage: http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting.html#canvasrenderingcontext2d
[DomName("CanvasRenderingContext2D")]
public interface ICanvasRenderingContext2D : IRenderingContext
- Inherited Members
- Extension Methods
Properties
Canvas
Gets the associated canvas element.
[DomName("canvas")]
IHtmlCanvasElement Canvas { get; }
Property Value
Height
Gets or sets the height of the canvas.
[DomName("height")]
int Height { get; set; }
Property Value
Width
Gets or sets the width of the canvas.
[DomName("width")]
int Width { get; set; }
Property Value
Methods
RestoreState()
Pop state stack and restore state.
[DomName("restore")]
void RestoreState()
SaveState()
Push state on state stack.
[DomName("save")]
void SaveState()