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