Merge pull request #2324 from Gigas002/viewer_filter_method
Implement setter for filter_method property of viewer
This commit is contained in:
commit
2de3253012
1 changed files with 6 additions and 0 deletions
|
|
@ -40,6 +40,12 @@ impl<Handle> Viewer<Handle> {
|
|||
}
|
||||
}
|
||||
|
||||
/// 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<Pixels>) -> Self {
|
||||
self.padding = padding.into().0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue