ImageData
ImageData is a data structure used to store raw pixel information for a rectangular region of an image or drawing surface. In many programming environments, it represents pixels as a flat, one‑dimensional array of color components in RGBA order, with one byte per channel. ImageData does not encode image file metadata or compression; it is the in-memory depiction of pixel colors.
The ImageData object exposes three main properties: data, width, and height. The data property is a Uint8ClampedArray
Creation and access typically occur in canvas-based web APIs. ImageData can be created directly with new ImageData(width,
ImageData is widely used for pixel-level image processing, such as applying filters, adjusting brightness, or performing