filterQuality property
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:
- Paint.filterQuality, which is used to pass FilterQuality to the engine while using drawImage calls on a Canvas.
- ImageShader.
- ImageFilter.matrix.
- Canvas.drawImage.
- Canvas.drawImageRect.
- Canvas.drawImageNine.
- Canvas.drawAtlas.
Implementation
final FilterQuality filterQuality;