[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pre-multiplied alpha



One ghetto way you could do it by rendering the surface to an opaque
black surface, then copying the original image's alpha over the opaque
black surface's alpha.

Is this for sending the pygame surface data to some other library or something?

On 8/3/07, Will McGugan <will@xxxxxxxxxxxxxxx> wrote:
> Hi,
>
> Is there any way to pre-multiply a surface with its alpha channel? I
> guess I could to it with surfarray, but I was wondering if there was
> another way.
>
> Regards,
>
> Will McGugan
>