Skip to main content
Version: 3.x

ImageData

The ImageData object

Reference

Methods

PropertyTypeDescription
dataUint8ClampedArrayOne-dimensional array containing data in RGBA order using integers from 0 to 255 inclusive.
heightnumberUse pixels to describe the actual height of the ImageData.
widthnumberUse pixels to describe the actual width of the ImageData.

API Support

APIWeChat Mini-ProgramH5React Native
ImageData✔️