ImageFilter.matrix constructor
- Float64List matrix4, {
- FilterQuality filterQuality = FilterQuality.medium,
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
factory ImageFilter.matrix(Float64List matrix4,
{ FilterQuality filterQuality = FilterQuality.medium }) {
if (matrix4.length != 16) {
throw ArgumentError('"matrix4" must have 16 entries.');
}
return _MatrixImageFilter(data: Float64List.fromList(matrix4), filterQuality: filterQuality);
}