📜  在 pygame 中保存屏幕截图 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:48.169000             🧑  作者: Mango

代码示例1
rect = pygame.Rect(25, 25, 100, 50)
sub = screen.subsurface(rect)
pygame.image.save(sub, "screenshot.jpg")
#The saved portion of the screen will be the rect portion