ImageFilter.matrix constructor
Creates an image filter that applies a matrix transformation.
For example, applying a positive scale matrix (see Matrix4.diagonal3
)
when used with BackdropFilter
would magnify the background image.
Implementation
ImageFilter.matrix(Float64List matrix4,
{ FilterQuality filterQuality = FilterQuality.low })
: _data = Float64List.fromList(matrix4),
_filterQuality = filterQuality,
_type = _kTypeMatrix {
if (matrix4.length != 16)
throw ArgumentError('"matrix4" must have 16 entries.');
}