SFML community forums
General => Feature requests => Topic started by: lukaius on November 02, 2017, 03:21:41 pm
-
SFML should have color masking and color transparency makers (don't know how to say it better :)
i downloaded sprites but the background was white AND MTpaint on linux makes it hard to make it transparent
so thats why SFML should make it better
-
I'm not sure I understand what you want. If a dedicated image application is not able to create the transparency mask, why do you think SFML would be able to perform better?
-
I've heard d somewhere that sfml can mask colors but it's a bit complicated
-
So what's your request? Why are you saying it is complicated?
Maybe you should take some time to actually read the doc and try to do what you want? Seems like you haven't investigated a lot on your issue, whatever it is.
-
I have but i have never seen color masking. But you're right i'll search Google.
Please don't be so rude
-
https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Image.php#a22f13f8c242a6b38eb73cc176b37ae34
That's all SFML has, to create a transparency mask from a color. It is very limited (just replaces color X with color Y), so you should rather pick some decent image software like GIMP and do the color replacement there once and for all.
-
Thanks!!