HTMLCanvasElementGetContext Method
Returns a drawing context on the canvas, or null if the context ID is not supported. A drawing context lets you draw on the canvas.

Namespace: Aspose.Html
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntax
public Object GetContext(
	string contextId
)

Parameters

contextId
Type: SystemString
Is a string containing the context identifier defining the drawing context associated to the canvas

Return Value

Type: Object
A RenderingContext
See Also