Repository navigation
Replies: 1 comment 2 replies
|
@oswald2 Tbf, i'm unsure if there is a "better" way to do this currently. AFAIK this is the best way i know how when it comes to screenshotting iced-elements directly. However, it has been discussed that maybe we could implement it directly into the chart (PNG and/or SVG), but we haven't really gotten around to it yet - I hope someone else might have more knowledge as to what the "best"/most effecient way to screenshot an element is :) |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everybody,
After some trying around, I came up with the following:
The principle is:
Elementscreenshotfunction of the renderer to get the binary dataNow, this is what I came up quickly. Because I also want to render the markers etc, it makes sense to use the
view()function of the structure showing the chart, so we are here a level 'higher' than the iced_aksel crate.It works, so I'll keep it that way. But any other ideas, of how this could be implemented a bit more efficiently?
All reactions