使用完整图像支持构建Pygame?

时间:2013-10-14 16:44:14

标签: python image pygame bmp

我正在尝试创建一个图形应用程序并使用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.

我该怎么做?

1 个答案:

答案 0 :(得分:-1)

图像模块是PIL - 您可以在此处获取 - http://www.pythonware.com/products/pil