[visionegg] Re: png transparency
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Thu, 03 Aug 2006 17:12:16 -0700
Dear Adam,
I can't remember if alpha works with pygame/SDL, but it definitely works
with the Python Imaging Library and from a Numeric array. See the
alpha_texture.py example.
adam naples wrote:
> HI, this is probably a really stupid question.
> but how do I display pngs with transparency information? I am trying
> to display multiple images with some overlapping.
> right now all I get is my image inside of a black rectangle
> I'm using this code to load the images
>
> filename = os.path.join("pad.png")
> pygame_surface = pygame.image.load(filename)
> texture = Texture(pygame_surface)
>
>
> thanks in advance
> -a
>
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] png transparency
- From: adam naples
Other related posts:
- » [visionegg] png transparency
- » [visionegg] Re: png transparency
- [visionegg] png transparency
- From: adam naples