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

[pygame] surfarray and alphas



Hello,

I have a PNG with an alpha channel, I would like to change the colours
of the surface (using array3d or similar), eg to flip the blue and red
channels. However, I find that when I convert my array3D back to a
surface, the alpha information has been lost.

Is there a way to change pixel colour data and preserve alpha?

Thanks,
Luke