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

Re: [pygame] Transparent PNGs / Flipped Images



On Fri, Jun 02, 2006 at 06:03:28PM -0400, Kris Schnee wrote:
> Marcus von Appen wrote:
> >On, Thu Jun 01, 2006, Kris Schnee wrote:
> >>I noticed that my PNG image files aren't displaying with transparency. 
> >>Is there a way to fix that?
> >
> >Did you try pygame.Surface.convert_alpha() after loading the image?
> 
> I did:
> 
> foo = pygame.image.load( filename ).convert()

Use convert_alpha(), not convert().  Trust me, it works.  ;)

Marius Gedminas
-- 
Of course I use Microsoft. Setting up a stable unix network is no challenge ;p

Attachment: signature.asc
Description: Digital signature