gpt4 book ai didi

python - 构建具有完整图像支持的 Pygame?

转载 作者:太空宇宙 更新时间:2023-11-04 06:43:03 25 4
gpt4 key购买 nike

我正在尝试创建一个图形应用程序并使用 pygame 作为我的库。但是,为了加载非 bmp 文件,我需要构建具有完整图像支持的 python。

The image module is a required dependency of Pygame, but it only optionally supports any extended file formats. By default it can only load uncompressed BMP images. When built with full image support, the pygame.image.load - load new image from a file function can support the following formats.

我该怎么做?

最佳答案

图像模块是 PIL - 你可以在这里得到它 - http://www.pythonware.com/products/pil

关于python - 构建具有完整图像支持的 Pygame?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19365060/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com