ImageData extension type

The ImageData interface represents the underlying pixel data of an area of a canvas element.

It is created using the ImageData.ImageData constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: CanvasRenderingContext2D.createImageData and CanvasRenderingContext2D.getImageData. It can also be used to set a part of the canvas by using CanvasRenderingContext2D.putImageData.

on
Implemented types

Constructors

ImageData(JSAny dataOrSw, int shOrSw, [JSAny settingsOrSh, ImageDataSettings settings])
factory

Properties

colorSpace PredefinedColorSpace
no setter
data JSUint8ClampedArray
no setter
hashCode int
The hash code for this object.
no setterinherited
height int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited