RgbaPixels class final

RGBA8 pixels read back from an image.

Constructors

RgbaPixels(int width, int height, Uint8List bytes)
Wraps bytes, which hold width × height pixels, 4 bytes each.

Properties

bytes → Uint8List
Row-major RGBA bytes, top row first.
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
Height in pixels.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
Width in pixels.
final

Methods

at(int x, int y) → List<int>
The pixel at (x, y) as [r, g, b, a].
atFraction(double fx, double fy) → List<int>
The pixel at fractional position (fx, fy) in 0..1 of the image.
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