Liking cljdoc? Tell your friends :D
ClojureScript only.

web.canvas.ImageData

The ImageData interface represents the underlying pixel data an area of a <canvas> element. It is created using the ImageData() or creator methods on the web.canvas.CanvasRenderingContext2D associated with a canvas: createImageData() and getImageData(). can also be used to set a part of the canvas by using putImageData().

The ImageData interface represents the underlying pixel data
an area of a `<canvas>` element. It is created using the `ImageData()`
or creator methods on the `web.canvas.CanvasRenderingContext2D`
associated with a canvas: `createImageData()` and `getImageData()`.
can also be used to set a part of the canvas by using `putImageData()`.
raw docstring

constructorcljs

(constructor & args)

Constructor.

The ImageData() constructor returns a newly instantiated web.canvas.ImageData object built from the typed array given and having the specified width and height.

array Optional A js.Uint8ClampedArray containing the underlying pixel representation of the image. If no such array is given, an image with a black rectangle of the specified width and height will be created. width An unsigned long representing the width of the image. height An unsigned long representing the height of the image. This value is optional if an array is given: the height will be inferred from the array's size and the given width.

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData

Constructor.

The ImageData() constructor returns a newly instantiated `web.canvas.ImageData` object built from the typed array given and having the specified width and height.

array Optional
A `js.Uint8ClampedArray` containing the underlying pixel representation of the image. If no such array is given, an image with a black rectangle of the specified width and height will be created.
width
An unsigned long representing the width of the image.
height
An unsigned long representing the height of the image. This value is optional if an array is given: the height will be inferred from the array's size and the given width.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData`
sourceraw docstring

datacljs

(data this)

Property.

[Read Only]

The readonly ImageData.data property returns a js.Uint8ClampedArray contains the web.canvas.ImageData object's pixel data. Data stored as a one-dimensional array in the RGBA order, with integer between 0 and 255 (inclusive).

imageData.data

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageData/data

Property.

[Read Only]

The readonly ImageData.data property returns a `js.Uint8ClampedArray`
contains the `web.canvas.ImageData` object's pixel data. Data
stored as a one-dimensional array in the RGBA order, with integer
between 0 and 255 (inclusive).

`imageData.data`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageData/data`
sourceraw docstring

heightcljs

(height this)

Property.

[Read Only]

The readonly ImageData.height property returns the number of in the web.canvas.ImageData object.

imageData.height

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageData/height

Property.

[Read Only]

The readonly ImageData.height property returns the number of
in the `web.canvas.ImageData` object.

`imageData.height`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageData/height`
sourceraw docstring

widthcljs

(width this)

Property.

[Read Only]

The readonly ImageData.width property returns the number of pixels row in the web.canvas.ImageData object.

imageData.width

See also: https://developer.mozilla.org/en-US/docs/Web/API/ImageData/width

Property.

[Read Only]

The readonly ImageData.width property returns the number of pixels
row in the `web.canvas.ImageData` object.

`imageData.width`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageData/width`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close