[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Updated Patch to add Premultiplied Alpha
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Updated Patch to add Premultiplied Alpha
- From: "Brian Fisher" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Aug 2007 01:12:10 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 23 Aug 2007 04:12:20 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=huzQGjRsIwjIYOJ1tB+jQRXPzPPsd7go8YmpQkgKSAOIqsh8S5rtTKf4MpClqlbLrbfEctsZJtwxRJ5fyBKmPwSv6MbTRv8qrL+DgXzJzseSvXlG49x5GLQPacePKdwx4ICp3yf4HNJautmA1NtOu449zmBC5isijbbneDqkxpU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=XW5SvlJ0B+6UuBmkcnjk2B+YQlNVmhA7GtlKFXBCDMHOyNba4+7KnKKFyHxTf1VIsXWhfP0BlXmZW3ils3ubUaCbU5dgSbSug4Mzhd3kabGnSr8bA0b1e6QpQNTbOL9IILPSOwms259d741K1SEHR2/xiQoro6I3lvT2jZ3bqG4=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
This is a replacement for the patch I emailed earlier to add an
RGBA_PREMULT & ARGB_PREMULT type to image.tostring (a very nice thing
for getting images into OpenGL)
It has an optimization for images with a decent amount of 0 alpha
pixels, and it also updates the image.doc file to describe the new
options
Also attached is the same unittest addition patch I sent before, for convenience
Attachment:
PremultipliedAlphaImageToString-8-23.patch
Description: Binary data
Attachment:
AddPremultipliedAlphaToStringTest.patch
Description: Binary data