OffscreenCanvas
open class OffscreenCanvas(var width: UInt53, var height: UInt53) : EventTarget, CanvasImageSource, TexImageSource, GPUCopyExternalImageSource, Transferable(source)
When using the
Functions
Link copied to clipboard
The OffscreenCanvas.convertToBlob() method creates a Blob object representing the image contained in the canvas.
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
fun <T : OffscreenRenderingContext, O : ERROR CLASS: Symbol not found for 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 transferToImageBitmap() method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
Link copied to clipboard