[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Per-pixel alpha from a HW surface?
- To: pygame-users@seul.org
- Subject: [pygame] Per-pixel alpha from a HW surface?
- From: Eric Burgess <eric@big-brain.org>
- Date: Tue, 06 Apr 2004 17:10:02 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 06 Apr 2004 18:05:58 -0400
- Reply-to: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
Hi, I'm new to pygame and I'm exploring the various features.  I'm on 
Windows, and haven't had any trouble getting HW surfaces (and the great 
performance that comes with them).  Now I'm playing with per-pixel 
alpha.  I've managed to get such an image to load and display, but only 
as a SW surface.  I don't know how to create a HW surface with per-pixel 
alpha...whether I can tell image.load() to do it, or if I can convert 
it, or what.  I tried blitting it to a HW surface, but it didn't retain 
the alpha information (which in retrospect makes perfect sense).
Thanks for any help!