使用方法scale
def scale(surface: Surface, size: Union[Tuple[int, int], List[int]], dest_surface: Optional[Surface]=None)
scale(Surface, (width, height), DestSurface = None) -> Surface resize to new resolution
使用示例
将Surface属性的self.image转化为30×30的大小
self.image = pygame.transform.scale(self.image, (30, 30))