Replies: 3 comments 5 replies
-
What programming language are you using. But does it need to be a url, cannot not be an image dirrectly?
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to add a feature that allows loading images from a base64 encoded string e.g. |
Beta Was this translation helpful? Give feedback.
-
I want to embed my assets in my executable and then load my assets to Slint. However, I need a way to convert a rust_embed'ed (or binary image) file to a Slint Image object. Any help appreciated, thank you.
Main.rs
Rust_Embed List files:
Slint Load Image:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My application uses an API that returns a link to an image that would like to show in the UI. Instead of using this URL to download the image (
svg
) and creatingslint::Image
out of it, I was hoping for a simpler way where I just update the URL and slint-ui does the rest.How to create
slint::Image
from a URL? I thought it will be straightforward because we already have@image-url
. (I don't think, I can pass property to@image-url
?).For example.
And somewhere in my application, I update the
root.url_svg_image
by callingset_url_svg_image
. Any example or link to discussion?Beta Was this translation helpful? Give feedback.
All reactions