Baekalfen/PyBoy

How to take an screenshot in code?

Opened this issue · 1 comments

I want to take a screenshot in code and get it by io.BytesIO.
How to do it?

pyboy.botsupport_manager().screen().screen_image().save('screenshot.png')

You can find the documentation here: https://docs.pyboy.dk/index.html