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

Re: [pygame] Convert() loses alpha



To: <pygame-users@seul.org>
Sent: Thursday, September 30, 2004 10:53 PM
Subject: Re: [pygame] Convert() loses alpha


> On Thu, 30 Sep 2004 22:15:26 -0700, Dmitry Borisov wrote:
> > I was trying these also:
> >     image= pygame.image.load( name ).convert( 32, SRCALPHA )
> > and
> >     image= pygame.image.load( name )
> >     s= Surface( size ).convert_alpha()
> >     s.blit( image, (0,0) )
>
> Try this one:
>
> image = pygame.image.load(name)
> image = image.convert_alpha()

I tried that also, it is making the whole image transparent. So my
background just empty.
Dmitry/