Python Game Library
Menu
Home
About
Projects
    PyDevIL
Links

PGL @ sf.net
PyDevIL

PyDevIL is the first project to be released under the Python Game Library. It is not part of the core PGL and was only a test to evaluate the complexity of wraping C/C++ code to Python. It is a Python wrapper around the very good DevIL image manipulation library developped by Denton Woods and located at http://www.imagelib.org. The documentation of the PyDevIL library is the same as DevIL and can be found on the DevIL web site.

Usage example:

from DevIL import *


ilInit()
image = ilGenImages(1)
ilBindImage(image)
ilLoadImage('test.gif')
ilSaveImage('test.jpg')

This very simple example would simply convert the GIF file test.gif to a JPEG file named test.jpg. For more information about the PyDevIL usage, refer to the DevIL documentation.

You can download a test package for windows that include everything you need to test PyDevIL here. Everybody else should check out the PyDevIL module from the cvs as explained here.

SourceForge Logo

 

Copyright © 2001, Jean-Francois Richard
All Rights Reserved