Repository navigation
Programmaticaly trigger a screenshot #251
|
Hi, How I get a screenshot programmaticaly. Regards, |
Answered by
17cupsofcoffee
Apr 28, 2021
Replies: 2 comments 5 replies
|
This would require:
I definitely want to make this possible in the future, I just need to make sure the API is right/safe. |
3 replies
|
The I may add some helper methods for saving screenshots in the future, but this should give you enough functionality to get started, at least. |
2 replies
Answer selected by
17cupsofcoffee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
mainbranch now has support for turning aTexture/Canvasinto anImageDatavia aget_datamethod, and you can retrieve the generated RGBA data viaImageData::into_rgba8. API subject to change based on feedback/how I feel about it when I'm less tired 😄I may add some helper methods for saving screenshots in the future, but this should give you enough functionality to get started, at least.