How To Set Background Color Of An Image To Transparent

[Solved] How To Set Background Color Of An Image To Transparent | C - Code Explorer | yomemimo.com
Question : how to set background color of an image to transparent in pygame

Answered by : relieved-rattlesnake-owojj009s3bh

image = pygame.image.load("Your file location")
image.set_colorkey((0, 0, 0)) # If your bg color is black for the image

Source : | Last Update : Wed, 30 Dec 20

Answers related to how to set background color of an image to transparent in pygame

Code Explorer Popular Question For C