pub enum ImageFilter {
Blur {
sigma_x: f64,
sigma_y: f64,
bounds: Option<Rect>,
},
Color(ColorFilter),
Compose {
outer: Rc<ImageFilter>,
inner: Rc<ImageFilter>,
},
}Expand description
A filter operation to apply to a raster image.
See also:
BackdropFilter, a widget that appliesImageFilterto its rendering.ImageFiltered, a widget that appliesImageFilterto its children.SceneBuilder.pushBackdropFilter, which is the low-level API for using this class as a backdrop filter.SceneBuilder.pushImageFilter, which is the low-level API for using this class as a child layer filter.
Variants§
Blur
A Gaussian blur; Dart’s _GaussianBlurImageFilter.
Fields
Color(ColorFilter)
A ColorFilter used as an image filter; Dart’s ColorFilter implements ImageFilter.
Compose
outer applied to the result of inner; Dart’s _ComposeImageFilter.
Fields
§
outer: Rc<ImageFilter>The filter that receives the filtered result of inner.
§
inner: Rc<ImageFilter>The filter that receives the original input.
Implementations§
Source§impl ImageFilter
impl ImageFilter
Sourcepub const fn blur(sigma_x: f64, sigma_y: f64) -> ImageFilter
pub const fn blur(sigma_x: f64, sigma_y: f64) -> ImageFilter
Creates an image filter that applies a Gaussian blur.
Sourcepub fn bounds(self, bounds: Rect) -> ImageFilter
pub fn bounds(self, bounds: Rect) -> ImageFilter
Dart ImageFilter.blur(bounds:).
Sourcepub fn compose(outer: ImageFilter, inner: ImageFilter) -> ImageFilter
pub fn compose(outer: ImageFilter, inner: ImageFilter) -> ImageFilter
Composes the inner filter with outer, to combine their effects.
Creates a single ImageFilter that when applied, has the same effect as
subsequently applying inner and outer, i.e.,
result = outer(inner(source)).
Sourcepub fn debug_short_description(&self) -> String
pub fn debug_short_description(&self) -> String
Dart’s debugShortDescription.
Source§impl ImageFilter
impl ImageFilter
Sourcepub fn to_valo(&self) -> ImageFilter
pub fn to_valo(&self) -> ImageFilter
The valo filter that replays this one, step for step and in the same order.
Trait Implementations§
Source§impl Clone for ImageFilter
impl Clone for ImageFilter
Source§impl Debug for ImageFilter
impl Debug for ImageFilter
Source§impl Display for ImageFilter
impl Display for ImageFilter
Source§impl PartialEq for ImageFilter
impl PartialEq for ImageFilter
impl StructuralPartialEq for ImageFilter
Auto Trait Implementations§
impl !Send for ImageFilter
impl !Sync for ImageFilter
impl Freeze for ImageFilter
impl RefUnwindSafe for ImageFilter
impl Unpin for ImageFilter
impl UnsafeUnpin for ImageFilter
impl UnwindSafe for ImageFilter
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