[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] blitting from-to surface with per-pixel alpha doesn't work...
- To: pygame-users@xxxxxxxx
- Subject: [pygame] blitting from-to surface with per-pixel alpha doesn't work...
- From: "D. Gyimesi" <dgyimesi@xxxxxxxxx>
- Date: Wed, 16 Nov 2005 23:10:05 +0100
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Wed, 16 Nov 2005 17:08:06 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=IhDJigncseEm0wiitfCOfkFPkMw7tYhEPI0ptBnpzV023vPo8cBD7IM1cwKqF2vyutJJkDgN004Y2S4XyuskLsRTQyX3Zu4eVm3Fr//YvWr+HKOJ8BdnnAx5ht5GQHaXdNMGiseIo7i9N4JsRT3vM+jwOxFfHFa5FDiWo33LzJs=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Dear List,
In the pygame documentation one can find the following:
'Surface alphas can be mixed with colorkeys, but an image with per pixel
alphas cannot use the other modes.'
I can interpret this like one can blit pixel data from any number of
surfaces to another with "only" one restriction: all of the surfaces'
transparency must be set to per-pixel alpha.
So, my problem is the following:
I have four surfaces: screen, background, tank and its parts.
The order of blitting: screen<-background and in another cycle
screen<-tank<-parts. All surfaces are having per-pixel-data of course.
Despite of this, the result in the tank surface (the surface I blit into
the parts) draws a strange black 'belt' around the parts, but other
transparent areas of the surfaces are showing up well.
I know it's a little hard to imagine, but did anyone meet a problem
similar to this?
Thank you, and sorry for my english!