PixaProcessors class abstract final

Helpers for building stable runtime processor descriptors.

Pixa keeps processor descriptors as strings so cache keys remain compact and stable across Dart and Rust. These helpers avoid typo-prone user code while preserving the same runtime pipeline.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

blur(double sigma) String
Applies a Gaussian blur. Range: 0..128.
brighten(int value) String
Adds value to every color channel. Range: -255..255.
contrast(double value) String
Adjusts contrast by value. Range: -255..255.
crop({required int x, required int y, required int width, required int height}) String
Crops a rectangle from the image.
fastBlur(double sigma) String
Applies a faster approximate Gaussian blur. Range: 0..128.
filter3x3(List<double> kernel) String
Applies a bounded 3x3 convolution kernel. Each value range: -64..64.
flipHorizontal() String
Mirrors pixels horizontally.
flipVertical() String
Mirrors pixels vertically.
grayscale() String
Converts pixels to grayscale.
hueRotate(int degrees) String
Rotates hue by degrees. Range: -360..360.
invert() String
Inverts color channels while preserving alpha.
resize({int? width, int? height, PixaResizeMode mode = PixaResizeMode.fit, PixaResizeFilter filter = PixaResizeFilter.lanczos3}) String
Resizes an image. At least one of width or height is required.
resizeExact(int width, int height, {PixaResizeFilter filter = PixaResizeFilter.lanczos3}) String
Resizes an image to an exact width and height.
resizeToFill(int width, int height, {PixaResizeFilter filter = PixaResizeFilter.lanczos3}) String
Resizes to fill width x height, cropping from the center if needed.
rotate(int degrees) String
Rotates by 0, 90, 180, or 270 degrees.
thumbnail(int width, int height) String
Builds a fast aspect-fit thumbnail that never enlarges the source image.
thumbnailExact(int width, int height) String
Builds a fast thumbnail with exact output dimensions.
tileCropResize({required int x, required int y, required int width, required int height, required int decodedWidth, required int decodedHeight, PixaResizeFilter filter = PixaResizeFilter.lanczos3}) String
Crops a source tile and resizes it to decoded tile dimensions.
unsharpen({required double sigma, required int threshold}) String
Applies an unsharp mask. sigma range: 0..128, threshold range: 0..255.