| 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.HtmlAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntaxpublic Object GetContext(
string contextId
)
Public Function GetContext (
contextId As String
) As Object
public:
Object^ GetContext(
String^ contextId
)
member GetContext :
contextId : string -> Object
Parameters
- contextId
- Type: SystemString
Is a string containing the context identifier defining the drawing context associated to the canvas
Return Value
Type:
ObjectA RenderingContext
See Also