Page 1 of 1

transparancy with png

Posted: Fri Jul 14, 2017 9:32 am
by buffalo
I have pictures with png files which background should have total transparency.
I get a black background in place, i dont know how to fix that.

Re: transparancy with png

Posted: Tue Jul 25, 2017 5:23 pm
by ThorPy
It could be a pure pygame problem (or not).

Send your code and maybe I can help.

Re: transparancy with png

Posted: Thu Jan 25, 2018 4:19 pm
by buffalo
An example tip to solve the problem:

Code: Select all

logoAlien = thorpy.load_image("mini_alien.png").convert()
transColor = logoAlien.get_at((0,0))
logoAlien.set_colorkey(transColor)