Enum tetra::graphics::FilterMode [−][src]
pub enum FilterMode {
Nearest,
Linear,
}
Expand description
Filtering algorithms that can be used when scaling an image.
Tetra currently defaults to using Nearest
for all newly created textures.
Variants
Nearest-neighbor interpolation. This preserves hard edges and details, but may look pixelated.
If you’re using pixel art, this is probably the scaling mode you should use.
Linear interpolation. This smooths images when scaling them up or down.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FilterMode
impl Send for FilterMode
impl Sync for FilterMode
impl Unpin for FilterMode
impl UnwindSafe for FilterMode
Blanket Implementations
Mutably borrows from an owned value. Read more