我用PIL打开了一个图像,比如
image = Image.open("SomeImage.png")
在上面画些文字,比如
^{pr2}$
然后保存为
image.save("SomeOtherName.png")
打开它游戏机.image在
this_image = pygame.image.load("SomeOtherName.png")
我只想不存钱就这么做。。有可能吗?保存和加载需要花费大量时间(0.12秒是的,这是因为我有多个图像需要此操作)。那个保存方法能被超越吗?在
Tags:
您可以使用
pygame.image
中的fromstring()
函数。根据文件,以下内容应有效:相关问题 更多 >
编程相关推荐