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

Re: [pygame] convert transparent region to white



chuang,

browing through the pygame docs at http://www.pygame.org/docs/  I don't see anything that will do exactly that in one step.

but, why not create a 64x64 surface, fill it with whatever color you want, and then blit your icon with the transparency onto the new surface.



On 6/2/06, Chuang Wu <chuangwoo@xxxxxxxxx> wrote:
Hi there,

I have a 64x64 icon with transparent region. I wanna show the transparent region in *white* color.

If I use convert_alpha(), the transparent region doesn't show. if I just use convert(), it became black.

So How to make it white? it'll be great if the image can have a black edge too =D

Thanks,
CC