[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
RE: [pygame] Alpha channels and per pixel alpha
- To: pygame-users@xxxxxxxx
- Subject: RE: [pygame] Alpha channels and per pixel alpha
- From: Devon Scott-Tunkin <djvonfunkin@xxxxxxxxx>
- Date: Wed, 10 Jun 2009 19:09:28 -0700 (PDT)
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 10 Jun 2009 22:09:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1244686169; bh=D+odOgpebIg8kmDREM4eKo01A4wcp3X/o9s8ryHzLlQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Uf6DdwiGA7AwMZt9PIAb2UU6/glJT8fHd3i5oOLIjvA3aDm570DzGWaLHQxv/xsNCJHw1w2YX2z/mZ4GXf6LALxHDC6qDP//0ga1eRTo/TBtCOynGnqF9obRmHcY4GcatAYtbOon+rnv9pXFAbwI6v9cvhf44lKT9ZjQAGutEDo=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=sHSS/kj+pz9YbQIx9XgPe+e1FfFyy8UYGOc35PlLCw8dNtlSa1ORc3YHnvXuFAHVDcIfjwUNSVJX8CF8G4K0xHInekMBmmX/xH/9xi6ZtaNYC2pUG6x7cKb9Eum35mfFPj9VK6snXAgNL5xY8eKVGezaQYqjANVfq5Efye2AdBY=;
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
What are you trying to do with the alpha channel? Just a transparent background? Are you drawing something on the alpha channel in photoshop? Just adding one doesn't really do anything, the alpha channel has to have , pixel data too, just like the rgb channels.
If I want to make a jpg transparent in parts I usually just unlock the background layer and then erasing it or magic wanding it or quick masking or however you want to make something transparenty-like will work. Make sure you see the "checker-box" pattern to know its transparent, if its still white or a color its not transparent. Then just save it as a normal png, I don't know what a superpng is.
--- On Wed, 6/10/09, Bjorn Samuelsson <bjorn_sam@xxxxxxxxxxx> wrote:
> From: Bjorn Samuelsson <bjorn_sam@xxxxxxxxxxx>
> Subject: RE: [pygame] Alpha channels and per pixel alpha
> To: pygame-users@xxxxxxxx
> Date: Wednesday, June 10, 2009, 6:03 PM
>
>
>
> #yiv1831619233 .hmmessage P
> {
> margin:0px;padding:0px;}
> #yiv1831619233 {
> font-size:10pt;font-family:Verdana;}
>
>
>
> Ok.
>
> Could you possibly give me some short instructions on
> how to make a simple image with alpha channel
> so maybe I can see what I'm doing wrong.
>
> This is how i do it: take a regular image in photoshop, add
> an alpha channel, save as a SuperPNG with the
> "alpha channels" box checked.
>
> I'm not really sure how to check if I have a
> "working" alpha channel or not. But when i reopen
> the image in photoshop the alpha channel is still
> there. I also tried a small application that gives out
> information about a given png-file and it said that the
> image is 32-bit RGB+alpha, non-interlaced.
>
>
>
> From: geometrian@xxxxxxxxx
> Date: Wed, 10 Jun 2009 14:48:58 -0700
> Subject: Re: [pygame] Alpha channels and per pixel alpha
> To: pygame-users@xxxxxxxx
>
> The way to do it is with .convert_alpha()
> Check that your images really do have an alpha channel.
>
> check out the rest of the Windows Live™.
> More than mail–Windows Live™ goes way beyond your
> inbox.
> More
> than messages
>