You can define a subsurface that is directly linked to the source surface with the method subsurface
:
subsurface(Rect) -> Surface
Returns a new Surface that shares its pixels with its new parent. The new Surface is considered a child of the original. Modifications to either Surface pixels will effect each other.
Create a copy of the subsurface to store it permanently:
rect_area = pygame.Rect(x, y, width, height)
area_surf = screen.subsurface(rect_area).copy()
Use the Surface later to replace the rectangular area:
screen.blit(area_surf, region)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…