SFML community forums

General => Feature requests => Topic started by: lukaius on November 02, 2017, 03:21:41 pm

Title: should SFML have easier color masking
Post 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
Title: Re: should SFML have easier color masking
Post by: Laurent on November 02, 2017, 03:30:46 pm
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?
Title: Re: should SFML have easier color masking
Post by: lukaius on November 03, 2017, 06:04:06 am
I've heard d somewhere that sfml can mask colors but it's a bit complicated
Title: Re: should SFML have easier color masking
Post by: Laurent on November 03, 2017, 06:36:06 am
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.
Title: Re: should SFML have easier color masking
Post by: lukaius on November 03, 2017, 03:12:15 pm
I have but i have never seen color masking. But you're right i'll search Google.
Please don't be so rude
Title: Re: should SFML have easier color masking
Post by: Laurent on November 03, 2017, 03:22:03 pm
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.
Title: Re: should SFML have easier color masking
Post by: lukaius on November 03, 2017, 03:26:15 pm
Thanks!!