[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] surfarray and alphas
- To: pygame-users@xxxxxxxx
- Subject: [pygame] surfarray and alphas
- From: "Luke Miller" <dodgyville@xxxxxxxxx>
- Date: Sat, 5 Aug 2006 11:06:40 +1000
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Fri, 04 Aug 2006 21:06:48 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XsJaiv8f1xwrwCfOfyl4YzSR4TCK6Y51gs0aupl1ANmdv4gC9FV9LMyvR3YnlWzj9VtvAOBuxqXBi7CWvIVfyVraOktGGZp131rRhGo0c4y9ycNtnzSVnda/agpr4AbMPTI9aKHxugRn1V3kwRvFXV+SANiLbLqLv0HdWuoc+js=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello,
I have a PNG with an alpha channel, I would like to change the colours
of the surface (using array3d or similar), eg to flip the blue and red
channels. However, I find that when I convert my array3D back to a
surface, the alpha information has been lost.
Is there a way to change pixel colour data and preserve alpha?
Thanks,
Luke