[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: PIL/Pygame interoperability Re: [pygame] white line on an image's edge



Dave LeCompte (really) wrote:
"Thiago Chaves" <shundread@xxxxxxxxx> wrote:
If anyone knows of a better method of using Pygame + PIL together, let me
know, by the way. saving images into HD and reloading them kinda disturbs
me, but couldn't find a more straightforward way.

I always use the tostring/fromstring methods - it's the same number of
steps, but it saves hitting the file system.

Also, on the Pygame side you can use "frombuffer". It's the same as "fromstring" but it will not make an extra copy of the data. It should work fine with PIL image strings.