ImageData
open class ImageData(sw: Int, sh: Int, settings: ImageDataSettings = definedExternally) : ImageBitmapSource, TexImageSource, GPUCopyExternalImageSource, Serializable(source)
The ImageData interface represents the underlying pixel data of an area of a
Constructors
Link copied to clipboard
constructor(data: ImageDataArray, sw: Int, sh: Int = definedExternally, settings: ImageDataSettings = definedExternally)
Properties
Link copied to clipboard
The read-only ImageData.colorSpace property is a string indicating the color space of the image data.
Link copied to clipboard
The readonly ImageData.data property returns a Uint8ClampedArray or Float16Array that contains the ImageData object's pixel data. Data is stored as a one-dimensional array in the RGBA order.