diff --git a/widget/src/image/viewer.rs b/widget/src/image/viewer.rs index f45c401ac8..2e3fd7131c 100644 --- a/widget/src/image/viewer.rs +++ b/widget/src/image/viewer.rs @@ -40,6 +40,12 @@ impl Viewer { } } + /// Sets the [`image::FilterMethod`] of the [`Viewer`]. + pub fn filter_method(mut self, filter_method: image::FilterMethod) -> Self { + self.filter_method = filter_method; + self + } + /// Sets the padding of the [`Viewer`]. pub fn padding(mut self, padding: impl Into) -> Self { self.padding = padding.into().0;