image: Use mipmaps for zoom-out and NN for zoom-in
Before we always used "linear" filtering. This gave a harsh image with moire patterns when zooming out and washed out images when zooming in. Closes #68, #71 Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/125>
This commit is contained in:
parent
6d0c5a4665
commit
67207bb215
3 changed files with 73 additions and 41 deletions
|
|
@ -27,6 +27,10 @@ impl ImageFormat {
|
|||
ImageFormat::AnimatedGif | ImageFormat::AnimatedWebP | ImageFormat::AnimatedPng
|
||||
)
|
||||
}
|
||||
|
||||
pub fn is_svg(&self) -> bool {
|
||||
matches!(self, Self::Svg)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for ImageFormat {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue