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

Re: [SPAM: 6.000] Re: [pygame] How do I make a image transparent?



Hi

Perhaps you should write a convert script that removes the alphachannel and replaces it with a colorkey of your choice. The main problem will be what do you do with half transparent pixels? e.g. pixel where the alpha value is between 0 and 255.

From the set_alpha() documentation:
"If the Surface contains per pixel alphas, setting the alpha value to None will disable the per pixel transparency."

But I dont know what dolor this pixels will have afterwards.


~DR0ID

PS: SPAM: 6.000 ??? lol


Greg Ewing schrieb:
Ethan Glasser-Camp wrote:
If there were a convert() function that changed
fully-transparent alpha into a colorkey, I would use that;

Probably you could just throw away the alpha channel
and use the colour of the top left pixel as the
colorkey.