【问题标题】:Build Pygame with full image support?构建具有完整图像支持的 Pygame?
【发布时间】:2013-10-14 16:44:14
【问题描述】:

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

我该怎么做?

【问题讨论】:

    标签: python image pygame bmp


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2013-10-20
      • 2023-03-04
      • 2021-12-20
      • 1970-01-01
      • 2010-11-04
      • 2012-09-27
      • 1970-01-01
      • 2012-07-03
      • 2012-06-19
      相关资源
      最近更新 更多