filterQuality property

FilterQuality filterQuality
final

default is low Quality levels for image sampling in ImageFilter and Shader objects that sample assetFlag and for Canvas operations that render assetFlag.

When scaling up typically the quality is lowest at none, higher at low and medium, and for very large scale factors (over 10x) the highest at high.

When scaling down, medium provides the best quality especially when scaling an image to less than half its size or for animating the scale factor between such reductions. Otherwise, low and high provide similar effects for reductions of between 50% and 100% but the image may lose detail and have dropouts below 50%.

To get high quality when scaling assetFlag up and down, or when the scale is unknown, medium is typically a good balanced choice.

When building for the web using the --web-renderer=html option, filter quality has no effect. All assetFlag are rendered using the respective browser's default setting.

See also:

Implementation

final FilterQuality filterQuality;