1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/// The way the images should change when drawn at a scale #[repr(u32)] #[derive(Copy, Clone, Debug)] pub enum ImageScaleStrategy { /// The image should attempt to preserve each pixel as accurately as possible Pixelate, /// The image should attempt to preserve the overall picture by blurring Blur } impl Default for ImageScaleStrategy { fn default() -> ImageScaleStrategy { ImageScaleStrategy::Pixelate } }