nx.js
Classes

ImageData

Implements

Constructors

new ImageData()

new ImageData(sw, sh, settings?): ImageData

Parameters

ParameterType
swnumber
shnumber
settings?ImageDataSettings

Returns

ImageData

new ImageData()

new ImageData(data, sw, sh?, settings?): ImageData

Parameters

ParameterType
dataUint8ClampedArray
swnumber
sh?number
settings?ImageDataSettings

Returns

ImageData

Properties

PropertyModifierTypeDescription
colorSpacereadonlyPredefinedColorSpaceMDN Reference
datareadonlyUint8ClampedArrayReturns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. MDN Reference
heightreadonlynumberReturns the actual dimensions of the data in the ImageData object, in pixels. MDN Reference
widthreadonlynumberReturns the actual dimensions of the data in the ImageData object, in pixels. MDN Reference

On this page