
## get_context {#str}

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.


### Returns 


A RenderingContext


```python
def get_context(self, context_id):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| context_id | str | Is a string containing the context identifier defining the drawing context associated to the canvas |



### See Also
* module [`aspose.html`](../../)
* class [`HTMLCanvasElement`](/html/python-net/aspose.html/htmlcanvaselement)
