Build Pygame with full image support?

懵懂的女人 提交于 2019-12-11 02:53:00

问题


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.

How do I do this?


回答1:


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



来源:https://stackoverflow.com/questions/19365060/build-pygame-with-full-image-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!