Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
General
»
Feature requests
»
should SFML have easier color masking
Print
Pages: [
1
]
Author
Topic: should SFML have easier color masking (Read 3216 times)
0 Members and 1 Guest are viewing this topic.
lukaius
Guest
should SFML have easier color masking
«
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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: should SFML have easier color masking
«
Reply #1 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?
Logged
Laurent Gomila - SFML developer
lukaius
Guest
Re: should SFML have easier color masking
«
Reply #2 on:
November 03, 2017, 06:04:06 am »
I've heard d somewhere that sfml can mask colors but it's a bit complicated
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: should SFML have easier color masking
«
Reply #3 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.
Logged
Laurent Gomila - SFML developer
lukaius
Guest
Re: should SFML have easier color masking
«
Reply #4 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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: should SFML have easier color masking
«
Reply #5 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.
Logged
Laurent Gomila - SFML developer
lukaius
Guest
Re: should SFML have easier color masking
«
Reply #6 on:
November 03, 2017, 03:26:15 pm »
Thanks!!
Logged
Print
Pages: [
1
]
SFML community forums
»
General
»
Feature requests
»
should SFML have easier color masking