Enum i_slint_core::items::ImageRendering
source · #[repr(C)]
pub enum ImageRendering {
Smooth,
Pixelated,
}Expand description
This enum specifies how the source image will be scaled.
Variants§
Smooth
The image is scaled with a linear interpolation algorithm.
Pixelated
The image is scaled with the nearest neighbor algorithm.
Trait Implementations§
source§impl Clone for ImageRendering
impl Clone for ImageRendering
source§fn clone(&self) -> ImageRendering
fn clone(&self) -> ImageRendering
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ImageRendering
impl Debug for ImageRendering
source§impl Default for ImageRendering
impl Default for ImageRendering
source§impl Display for ImageRendering
impl Display for ImageRendering
source§impl FromStr for ImageRendering
impl FromStr for ImageRendering
source§impl Hash for ImageRendering
impl Hash for ImageRendering
source§impl PartialEq<ImageRendering> for ImageRendering
impl PartialEq<ImageRendering> for ImageRendering
source§fn eq(&self, other: &ImageRendering) -> bool
fn eq(&self, other: &ImageRendering) -> bool
This method tests for
self and other values to be equal, and is used
by ==.