SFML community forums
Help => Graphics => Topic started by: C++Geek on May 15, 2015, 07:32:51 pm
-
Hello!
I would like to use SFML to display a partially transparent PNG image.
The one called "shape.png" works fine.
The one called "arrow.png" fails to load.
What is wrong with arrow.png?
-
Is there an error message?
-
"arrow.png" is an 8 bit PNG, which are not supported. Transform it to 24 bit and it should work.
Here's a transformed version:
-
Here's a transformed version:
How did you do that?
-
Using GIMP, I changed the color mode from Indexed to RGB :)
Does it load now?
-
ImageMagic (http://www.imagemagick.org/) is also a great tool for transforming images in every-which-way you could dream of (including changing formats easily). Check it out.
-
Does it load now?
Yes it does. Thanks!