How To Display Image Files In a Slint-based Application UI? #6592
Replies: 2 comments 3 replies
-
It's not clear to me from your comment exactly what you are trying that's failing. While none of my projects have used an image 'uploaded' to it from the user, in one of my projects I modify and reload the image based on theming. Here is the link to the Rust API for the image component, that goes into more depth, maybe this will point you in the right direction?: https://docs.slint.dev/latest/docs/rust/slint/struct.Image |
Beta Was this translation helpful? Give feedback.
-
Which image formats are you using? Slint uses the
should all be enabled. If you need more than that, you should also be able to pass more features to the image crate. |
Beta Was this translation helpful? Give feedback.
-
We're developing a Rust/Slint/SQLite-based geneaology application for Linux desktops (Debian and NixOS) that needs to upload and display image files (png, jpeg, gif, tiff, etc) associated with a given ancestor or relative.
We can successfully upload our image files but are struggling to find a way to display them from our Slint UI.
Does Slint lack the native ability to render any image formats?
If so, are there any recommended Rust-based and Slint-compatible rendering libraries we could use to display images?
Any documentation, examples of Slint image rendering, links or tutorials on this topic would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions