This should do it:
image = pygame.Surface([640,480], pygame.SRCALPHA, 32)
image = image.convert_alpha()
Make sure that the color depth (32) stays explicitly set else this will not work.
More Related Contents:
- How to convert the background color of image to match the color of Pygame window?
- Pygame window not responding after a few seconds
- How to make smooth movement in pygame
- How to run multiple while loops at a time in Python
- How can I play an mp3 with pygame?
- What is a good way to draw images using pygame?
- Rendering text with multiple lines in pygame
- Making the background move sideways in pygame
- How can you rotate the sprite and shoot the bullets towards the mouse position?
- How to get if a key is pressed pygame [duplicate]
- Solving “DLL load failed: %1 is not a valid Win32 application.” for Pygame
- How can I make an Image with a transparent Backround in Pygame?
- How to set the pivot point (center of rotation) for pygame.transform.rotate()?
- Closing Pygame Window
- How to install PyGame on Python 3.4?
- Pygame: Is there any easy way to find the letter/number of ANY alphanumeric pressed?
- Moving forward after angle change. Pygame
- problems with pygame controller support
- How to make image stay on screen in pygame?
- Python pygame not installing
- Any way to speed up Python and Pygame?
- How to move a no frame pygame windows when user clicks on it?
- Pygame make sprite walk in given rotation
- How to add pause mode to Python program
- how to center image inside a rect pygame
- Check collision between a image and a line
- How do you get pygame to give warning when player touches side of screen?
- Chinese unicode fonts in PyGame
- Overlap between mask and fired beams in Pygame [AI car model vision]
- How to fade the screen out and back in using PyGame?