Skip to content
Discussion options

You must be logged in to vote

Hi! I think if your lib provides you with pixels, the best thing you can do is try to make the lib render them straight into a slint::SharedPixelBuffer. You can get hold of the underlying bytes with make_mut_bytes for example. Depending on the size and compute power you have, this might be fast enough.

Otherwise I think you're going to have to see if your lib can produce the pixels using the GPU using OpenGL and import it as a texture, like in this example.

Either way a slint::Image will be the target.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tronical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants