[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Surfaces with Transparent Backgrounds
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Surfaces with Transparent Backgrounds
- From: pymike <pymike93@xxxxxxxxx>
- Date: Thu, 20 Aug 2009 20:46:48 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 20 Aug 2009 21:46:56 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=kIVEItkis0hlpbpI7fisYrMe/Aiq3+9iQYxhPBhC9+o=; b=xn+MryD86UV3tbJrl+VlGTwaNUzzY+iKbalsKcKNwkB5rGBwyGAfUbpwRapojuZZp6 JHwrtuKyx9gd6mlv/WTQ3oaNyJ/xItx+zfbHNfgkQaIpGmT8t6Es5LObbINFgKoiOr82 cVBtf8BuJjvBtZmXNwywX9n8AdpZ4UGFrA2Ws=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=oO5yfJUOmNghPepyGhOr5hzvfId4qVtInQoeedWCLKnJladdwISDWZehknEzkUfuat A8lo13z4y3hfcyGAzo2WQqCntd3GIyHZe3YvvhkFPuDCnX/0wLjJTLO5LPtqroOWK8Gr jntO3uCcNhwr5dTcJYnVl+1yv6GugYYIz7jvg=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
I have a function that loads image strips and returns the images in lists. To do this, I create new surfaces and blit the strips to them at an offset.
My question is: Is there a way to create surfaces with transparent backgrounds? The images have quite a bit of semi-transparent pixels in them, so I can't use colorkeys.
Thanks,
--
- pymike