ThumbHashSampler class

Constructors

ThumbHashSampler(String hash, Image image)
ThumbHashSampler.base64(String bs)
factory

Properties

hash String
final
hashCode int
The hash code for this object.
no setterinherited
height int
no setter
image → Image
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
no setter

Methods

blerp(Color c00, Color c10, Color c01, Color c11, double tx, double ty) Color
getColorAtPixel(int x, int y) Color
getColorNormalized(double x, double y) Color
getMeshPointNormalized(double x, double y) → MeshGradientPoint
hardSample({double p = 0.15}) List<MeshGradientPoint>
lerp(Color a, Color b, double t) Color
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sample(List<Offset> normals) List<Color>
sampleColorBlerp(double x, double y, double p) Color
samplePointBlerp(double x, double y, double p) → MeshGradientPoint
samplePoints(int w, int h) List<MeshGradientPoint>
snap(int w, int h) List<Color>
supersample({double r = 0.1, double p = 0.15, dynamic h = 0.15}) List<MeshGradientPoint>
toString() String
A string representation of this object.
inherited

Operators

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