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

0

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

pygame.image.save(screen,"screenshot.jpg")
Posted by: Guest on November-16-2020
0

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

rect = pygame.Rect(25, 25, 100, 50)
sub = screen.subsurface(rect)
pygame.image.save(sub, "screenshot.jpg")
Posted by: Guest on November-16-2020

Code answers related to "how to take a screenshot of the pygame window and paste it"

Browse Popular Code Answers by Language