Answer the question
In order to leave comments, you need to log in
How to save transparent image in pygame?
wrote a small code (something like Paint'a at minimum), and tried to save surface
using while maintaining transparency, but nothing came of it.
What I tried to do:
Replace the image with a transparent PNG image (it is completely empty, I even used )
Set as A-channel
Make it transparent itselfpygame.image.save(surface, 'picture.png')
surface
convert.alpa()
colorkey
surface
Answer the question
In order to leave comments, you need to log in
Color depth should be 32
image = pygame.Surface([640,480], pygame.SRCALPHA, 32)
image = image.convert_alpha()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question