pub enum RenderQuality {
Low,
Medium,
High,
}Expand description
Rendering quality preset controlling anti-aliasing smoothing strategy.
Maps to the canvas imageSmoothingQuality value plus an explicit
imageSmoothingEnabled toggle. Combined with a CSS image-rendering: pixelated rule on the consumer side, Low produces crisp pixel-art
rendering while High produces smooth vector-style rendering.
Variants§
Low
Fastest rendering, pixelated scaling.
Disables imageSmoothingEnabled on the canvas context and sets
imageSmoothingQuality = "low". Pair with CSS image-rendering: pixelated for sharp nearest-neighbour scaling.
Medium
Balanced rendering with default smoothing quality.
Sets imageSmoothingQuality = "medium".
High
Highest fidelity rendering with smooth edges and high-quality scaling.
Sets imageSmoothingQuality = "high". Best for vector-style content
on HiDPI displays. This is the default — when no explicit quality is
requested, the engine errs on the side of visual fidelity rather than
performance, since users typically notice aliasing artifacts before
they notice a few extra milliseconds of GPU time.
Trait Implementations§
Source§impl Clone for RenderQuality
impl Clone for RenderQuality
Source§fn clone(&self) -> RenderQuality
fn clone(&self) -> RenderQuality
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more