[
Author Prev
][
Author Next
][
Thread Prev
][
Thread Next
][
Author Index
][
Thread Index
]
Re: [pygame] Determining per-pixel alpha
To
:
pygame-users@seul.org
Subject
: Re: [pygame] Determining per-pixel alpha
From
: Pete Shinners <
pete@shinners.org
>
Date
: Fri, 09 Jan 2004 17:40:41 -0800
Delivered-to
: archiver@seul.org
Delivered-to
: pygame-users-outgoing@seul.org
Delivered-to
: pygame-users@seul.org
Delivery-date
: Fri, 09 Jan 2004 20:41:08 -0500
In-reply-to
: <
BAY2-F125cDgD1rruDm00015de0@hotmail.com
>
References
: <
BAY2-F125cDgD1rruDm00015de0@hotmail.com
>
Reply-to
:
pygame-users@seul.org
Sender
:
owner-pygame-users@seul.org
User-agent
: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3
Lee Harr wrote:
How can I tell if a surface has per-pixel alpha?
The easiest way is to see if the pixel data has an alpha mask. If that doesn't make much sense, just trust that this code works.
def does_surface_have_pixel_alpha(surface):
return surface.get_masks()[3] != 0
References
:
[pygame] Determining per-pixel alpha
From:
"Lee Harr" <missive@hotmail.com>
Prev by Author:
Re: [pygame] Pygame support for both SDL and DirectFB
Next by Author:
Re: [pygame] py2exe on fonty.py fails with segfault
Previous by thread:
[pygame] Determining per-pixel alpha
Next by thread:
RE: [pygame] Determining per-pixel alpha
Index(es):
Author
Thread