5.11. fonttexout_pil

hwlllo asdLKJ

Copyright @ 2013 Mathias Westerdahl

This module lets you choose the PIL package as texture writer. PIL supports a range of formats such as bmp, jpg, tga, png. PIL also allows for custom file formats.

fonttexout_pil.texturechannels

Designates what channels should be written out to disc. Possible values are any permutation of the letters R, G, B, A and L. L gives you the red channel

Defaults to ‘RGBA’

fonttexout_pil.textureformat

The texture format that will be used. Defaults to ‘.png’

Example:

texturewriter = fonttexout_pil

[fonttexout_pil]
textureformat = .png
texturechannels = 'RGBA'
fonttexout_pil.write(options, info, image)[source]

Writes the image to disc