Skip to content

RGBAImage

An object to store image data not premultiplied, because ImageData is not premultiplied. UNPACK_PREMULTIPLY_ALPHA_WEBGL must be used when uploading to a texture.

Properties

data

data: Uint8Array

data must be a Uint8Array instead of Uint8ClampedArray because texImage2D does not support Uint8ClampedArray in all browsers.

Source

src/util/image.ts:120