feat: Take screenshots (#759)
## Summary * **What is the goal of this PR?** Implements a take-screenshot feature * **What changes are included?** - Quick press Power button and Down button at the same time to take a screenshot - Screenshots are saved in `screenshots` folder ## Additional Context - Currently it does not use the device orientation. --- Example screenshots:  [screenshot-6771.bmp](https://github.com/user-attachments/files/25157071/screenshot-6771.bmp)  [screenshot-14158.bmp](https://github.com/user-attachments/files/25157073/screenshot-14158.bmp) ### AI Usage Did you use AI tools to help write this code? _** YES --------- Co-authored-by: Eliz Kilic <elizk@google.com> Co-authored-by: Xuan Son Nguyen <son@huggingface.co> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Arthur Tazhitdinov <lisnake@gmail.com>
This commit is contained in:
co-authored by
Eliz Kilic
Xuan Son Nguyen
Copilot
Arthur Tazhitdinov
parent
5f5561b684
commit
c1fad16e10
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
#include <GfxRenderer.h>
|
||||
|
||||
class ScreenshotUtil {
|
||||
public:
|
||||
static void takeScreenshot(GfxRenderer& renderer);
|
||||
static bool saveFramebufferAsBmp(const char* filename, const uint8_t* framebuffer, int width, int height);
|
||||
};
|
||||
Reference in New Issue
Block a user