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 & args)
Constructor.
The OffscreenCanvas() constructor returns a newly instantiated web.canvas.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.canvas.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.
[Experimental]
The OffscreenCanvas.convertToBlob()method creates a web.files.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/convertToBlob
Method. [Experimental] The OffscreenCanvas.convertToBlob()method creates a `web.files.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/convertToBlob`
(get-context this context-type context-attributes)
Method.
[Experimental]
The OffscreenCanvas.getContext() method returns a drawing context
an offscreen canvas, or js.null
if the context identifier is
supported.
offscreen.getContext(contextType, contextAttributes);
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext
Method. [Experimental] The OffscreenCanvas.getContext() method returns a drawing context an offscreen canvas, or `js.null` if the context identifier is supported. `offscreen.getContext(contextType, contextAttributes);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext`
(height this)
Property.
[Experimental]
The height property returns and sets the height of an web.canvas.OffscreenCanvas
var pxl = offscreen.height; offscreen.height = pxl;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height
Property. [Experimental] The height property returns and sets the height of an `web.canvas.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.
[Experimental]
The height property returns and sets the height of an web.canvas.OffscreenCanvas
var pxl = offscreen.height; offscreen.height = pxl;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height
Property. [Experimental] The height property returns and sets the height of an `web.canvas.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.
[Experimental]
The width property returns and sets the width of an web.canvas.OffscreenCanvas
var pxl = offscreen.width; offscreen.width = pxl;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width
Property. [Experimental] The width property returns and sets the width of an `web.canvas.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.
[Experimental]
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. [Experimental] 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.
[Experimental]
The width property returns and sets the width of an web.canvas.OffscreenCanvas
var pxl = offscreen.width; offscreen.width = pxl;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width
Property. [Experimental] The width property returns and sets the width of an `web.canvas.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