Hi! While trying to take a screenshot I’m facing some trouble.
This code works fine when calling it:
screenshot.grabScreen(0, 0 , 1080, 1920); screenshot.save("screenshot.png"); screenshot.clear();
But when I rotate my project by editing
main.cpp and adding
…i get some kind of distorted image that is mostly transparent.
Is there something that I’m missing or a way to fix that?
RPi4B+, 8GB RAM, 16GB microSD with fresh RaspberryOS Lite, app called with
sudo startx ./myProject -- -s off