📌  相关文章
📜  如何截取 pygame 窗口的屏幕截图并粘贴 - 任何代码示例

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

代码示例2
rect = pygame.Rect(25, 25, 100, 50)
sub = screen.subsurface(rect)
pygame.image.save(sub, "screenshot.jpg")