ImageData class
The interface represents the underlying pixel data of an area of
a <canvas>
element.
It is created using the ImageData() constructor or creator
methods on the CanvasRenderingContext2D object associated with
a canvas: createImageData()
and getImageData()
. It can also
be used to set a part of the canvas by using putImageData()
.
Note: This feature is available in Web Workers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- ImageData(Uint8ClampedList data, int sw, [int? sh, ImageDataSettings? settings])
-
factory
Properties
- colorSpace → PredefinedColorSpace
-
Available on ImageData, provided by the PropsImageData extension
no setter - data → Uint8ClampedList
-
Available on ImageData, provided by the PropsImageData extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Available on ImageData, provided by the PropsImageData extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
Available on ImageData, provided by the PropsImageData extension
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