How To Take A Screenshot Of The Pygame Window And

[Solved] How To Take A Screenshot Of The Pygame Window And | C - Code Explorer | yomemimo.com
Question : how to take a screenshot of the pygame window and paste it

Answered by : aggressive-anteater-ho4xx3jf2h4x

pygame.image.save(screen,"screenshot.jpg")

Source : https://stackoverflow.com/questions/17267395/how-to-take-screenshot-of-certain-part-of-screen-in-pygame | Last Update : Mon, 23 Nov 20

Question : how to take a screenshot of the pygame window and paste it

Answered by : aggressive-anteater-ho4xx3jf2h4x

rect = pygame.Rect(25, 25, 100, 50)
sub = screen.subsurface(rect)
pygame.image.save(sub, "screenshot.jpg")

Source : https://stackoverflow.com/questions/17267395/how-to-take-screenshot-of-certain-part-of-screen-in-pygame | Last Update : Mon, 23 Nov 20

Answers related to how to take a screenshot of the pygame window and paste it

Code Explorer Popular Question For C