I haven't tried this myself, but it's possible that it could be related to 
the particular codec being used to save the image. It might be worth a try 
to try specifically passing in different codecs to the save method, to see 
if there is any difference. 

You also might try taking the final texture, and then making another sprite 
from it. In this way, you could confirm that the texture itself contains 
the correct alpha information. 

-Ben



On Friday, March 23, 2018 at 2:21:14 PM UTC+9, x422man wrote:
>
> i am trying to use pyglet to build up a composite image made up of several 
> PNG files. each file has its own transpancy (alpha). the background image 
> is a circle clockface on a transparent background. the images above are 
> each hand of teh clock each with their own transpancy.
>
> i create a window and blit the background image into the window. after 
> that i set the other images as sprites and draw them in 1 at a time. the 
> results are as expected.
>
> i then want to take a snapshot of the window including all traspancies and 
> save as a PNG file.
>
> my issue is that the transpancy is not being saved the clockface should be 
> transparent outside its circle. but this is not happening. infact the alpha 
> is completely solid.
>
> it is present in the image, but is not what the original background layer 
> had.
>
> how can i set up the window so it retains the background alpha infomation. 
> so when i retirive it it is still intact.
>
>
>
>
>
>
>
>
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to