pub struct ImageFilters {
pub tint: Option<Color>,
pub brightness: f32,
pub contrast: f32,
pub saturation: f32,
pub blur: f32,
}Expand description
The filters an Image is drawn through, for the renderer. Each
number is finite and at least 0, and the default changes nothing.
Fields§
§tint: Option<Color>The color every pixel is painted in, keeping its alpha.
brightness: f32Scales each color channel, as CSS’s brightness().
contrast: f32Moves each channel from or toward the middle gray, as CSS’s
contrast().
saturation: f32Moves each color from or toward its gray, as CSS’s saturate().
blur: f32A Gaussian blur’s standard deviation in logical pixels, as CSS’s
blur().
Trait Implementations§
Source§impl Clone for ImageFilters
impl Clone for ImageFilters
impl Copy for ImageFilters
Source§impl Debug for ImageFilters
impl Debug for ImageFilters
Source§impl Default for ImageFilters
impl Default for ImageFilters
Source§fn default() -> ImageFilters
fn default() -> ImageFilters
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImageFilters
impl PartialEq for ImageFilters
impl StructuralPartialEq for ImageFilters
Auto Trait Implementations§
impl Forget for ImageFilters
impl Freeze for ImageFilters
impl Move for ImageFilters
impl RefUnwindSafe for ImageFilters
impl Send for ImageFilters
impl Sync for ImageFilters
impl Unpin for ImageFilters
impl UnsafeUnpin for ImageFilters
impl UnwindSafe for ImageFilters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more