Closed SirRonBird closed 3 weeks ago
It works me. The image has to be png file. If the demo app works for you, then the rust code must work. You may have wrong format.
I read image bytes like this let img_bytes = std::fs::read("screenshot.png").unwrap();
In rust you could also use the clipboard-rs
crate directly which is the underlying library for this plugin.
Its working.. I was dumb and throught the copied image can be pasted like a file...
Greetings,
Iam working on a project with Tauri and I want to wrte an image to the clipboard on Windows:
The only response iam getting is "wrting bin image to clipboard" but neither the
res
is evaluated, it seems like the function wrtie_image_binary is just doing nothing...Did i something wrong?