The OffscreenCanvas interface provides a canvas that can be rendered screen. It is available in both the window and worker contexts.
The OffscreenCanvas interface provides a canvas that can be rendered screen. It is available in both the window and worker contexts.
Constructor.
The OffscreenCanvas() constructor returns a newly instantiated web.OffscreenCanvas
object.
width The width of the offscreen canvas. height The height of the offscreen canvas.
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/OffscreenCanvas
Constructor. The OffscreenCanvas() constructor returns a newly instantiated `web.OffscreenCanvas` object. width The width of the offscreen canvas. height The height of the offscreen canvas. See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/OffscreenCanvas`
(convert-to-blob this options)
Method.
The OffscreenCanvas.convertToBlob() method creates a web.Blob
representing the image contained in the canvas.
Promise<Blob> OffscreenCanvas.convertToBlob(options);
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob
Method. The OffscreenCanvas.convertToBlob() method creates a `web.Blob` representing the image contained in the canvas. `Promise<Blob> OffscreenCanvas.convertToBlob(options);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob`
(get-context this context-type context-attributes)
Method.
The OffscreenCanvas.getContext() method returns a drawing context
an offscreen canvas, or web.null
if the context identifier
not supported.
offscreen.getContext(contextType, contextAttributes);
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext
Method. The OffscreenCanvas.getContext() method returns a drawing context an offscreen canvas, or `web.null` if the context identifier not supported. `offscreen.getContext(contextType, contextAttributes);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext`
(height this)
Property.
The height property returns and sets the height of an web.OffscreenCanvas
var pxl = offscreen.height; offscreen.height = pxl;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height
Property. The height property returns and sets the height of an `web.OffscreenCanvas` `var pxl = offscreen.height; offscreen.height = pxl;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height`
(set-height! this val)
Property.
The height property returns and sets the height of an web.OffscreenCanvas
var pxl = offscreen.height; offscreen.height = pxl;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height
Property. The height property returns and sets the height of an `web.OffscreenCanvas` `var pxl = offscreen.height; offscreen.height = pxl;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height`
(set-width! this val)
Property.
The width property returns and sets the width of an web.OffscreenCanvas
var pxl = offscreen.width; offscreen.width = pxl;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width
Property. The width property returns and sets the width of an `web.OffscreenCanvas` `var pxl = offscreen.width; offscreen.width = pxl;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width`
(transfer-to-image-bitmap this)
Method.
The OffscreenCanvas.transferToImageBitmap() method creates an object from the most recently rendered image of the OffscreenCanvas.
ImageBitmap OffscreenCanvas.transferToImageBitmap()
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/transferToImageBitmap
Method. The OffscreenCanvas.transferToImageBitmap() method creates an object from the most recently rendered image of the OffscreenCanvas. `ImageBitmap OffscreenCanvas.transferToImageBitmap()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/transferToImageBitmap`
(width this)
Property.
The width property returns and sets the width of an web.OffscreenCanvas
var pxl = offscreen.width; offscreen.width = pxl;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width
Property. The width property returns and sets the width of an `web.OffscreenCanvas` `var pxl = offscreen.width; offscreen.width = pxl;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close