ImageData class

The underlying pixel data of an area of a

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

ImageData.$1()
factory
ImageData.$2(num sw, num sh, [ImageDataSettings? settings])
factory
ImageData.$3(Uint8ClampedList data, num sw, [num? sh, ImageDataSettings? settings])
factory

Properties

colorSpace PredefinedColorSpace

Available on ImageData, provided by the ImageData$Typings extension

MDN Reference
no setter
data Uint8ClampedList

Available on ImageData, provided by the ImageData$Typings extension

Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
no setter
hashCode int
The hash code for this object.
no setterinherited
height num

Available on ImageData, provided by the ImageData$Typings extension

Returns the actual dimensions of the data in the ImageData object, in pixels.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width num

Available on ImageData, provided by the ImageData$Typings extension

Returns the actual dimensions of the data in the ImageData object, in pixels.
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