# OffscreenCanvas > **NOTE:** >The APIs of this module are supported since API version 7. Defines a canvas object that can be rendered off the screen. ## Attributes
The invoking methods are as follows: var ctx = canvas.getContext(contextId); var ctx = canvas.getContext(contextId, options); The contextId parameter is mandatory. Currently, only the value 2d is supported. The options parameter is optional and is not supported currently. Obtains the context for drawing on an offscreen canvas. The parameter can be set only to 2d. The return value is a 2D drawing object that provides specific 2D drawing operations. For details, see OffscreenCanvasRenderingContext2D. |
||
Generates a URL containing image display information. |
||
Creates an ImageBitmap object from the most recent image rendered by Offscreen Canvas. |