OffscreenCanvas
open class OffscreenCanvas( var width: UInt53, var height: UInt53) : EventTarget, CanvasImageSource, TexImageSource, GPUCopyExternalImageSource, Transferable(source)
When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.
Properties
Functions
Link copied to clipboard
The OffscreenCanvas.convertToBlob()
method creates a Blob object representing the image contained in the canvas.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : OffscreenRenderingContext, O : JsAny> getContext(contextId: RenderingContextId<T, O>, options: O? = definedExternally): T?
The OffscreenCanvas.getContext()
method returns a drawing context for an offscreen canvas, or null
if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.
Link copied to clipboard
The OffscreenCanvas.transferToImageBitmap()
method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas
.
Link copied to clipboard