method OffscreenCanvas.getContext
Overload 1
#OffscreenCanvas.getContext(contextId: "bitmaprenderer",options?: any,): ImageBitmapRenderingContext | nullGet a drawing context for the canvas. If this was previously called, it will return the same context.
Parameters #
Return Type #
ImageBitmapRenderingContext | null Overload 2
#OffscreenCanvas.getContext(contextId: "webgpu",options?: any,): GPUCanvasContext | nullParameters #
Return Type #
GPUCanvasContext | null Overload 3
#OffscreenCanvas.getContext(contextId: OffscreenRenderingContextId,options?: any,): OffscreenRenderingContext | nullParameters #
#contextId: OffscreenRenderingContextId #options: any optional
Return Type #
OffscreenRenderingContext | null