magickColorMatrixImage method
Apply color transformation to an image. The method permits saturation changes, hue rotation, luminance to alpha, and various other effects. Although variable-sized transformation matrices can be used, typically one uses a 5x5 matrix for an RGBA image and a 6x6 for CMYKA (or RGBA with offsets). The matrix is similar to those used by Adobe Flash except offsets are in column 6 rather than 5 (in support of CMYKA images) and offsets are normalized (divide Flash offset by 255).
This method runs inside an isolate different from the main isolate.
colorMatrix
: the color matrix.
Implementation
Future<bool> magickColorMatrixImage(
{required KernelInfo colorMatrix}) async =>
await _magickCompute(
_magickColorMatrixImage,
_MagickColorMatrixImageParams(
_wandPtr.address,
colorMatrix,
),
);