使用完整的图像支持构建Pygame? [英] Build Pygame with full image support?

查看:91
本文介绍了使用完整的图像支持构建Pygame?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to create a graphical application and using pygame as my library. However, in order to load non-bmp files I need to build python with full image support.

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

The image module is PIL - you can get it here - http://www.pythonware.com/products/pil

这篇关于使用完整的图像支持构建Pygame?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆