Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
How can I 'mask' an image
Print
Pages: [
1
]
Author
Topic: How can I 'mask' an image (Read 2131 times)
0 Members and 1 Guest are viewing this topic.
Dark Byte
Newbie
Posts: 30
How can I 'mask' an image
«
on:
September 29, 2010, 02:46:51 am »
Is it possible to mask an image (if a pixel in the image is a specific color it is invisible)?
Logged
Spodi
Full Member
Posts: 150
How can I 'mask' an image
«
Reply #1 on:
September 29, 2010, 03:10:34 am »
I don't think there is any simple way to actually apply a mask in the traditional sense of a mask, but you can set an image to make a certain color transparent with
sf::Image::CreateMaskFromColor
.
Logged
Dark Byte
Newbie
Posts: 30
How can I 'mask' an image
«
Reply #2 on:
September 29, 2010, 03:40:41 am »
Thank you exactly what I needed.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
How can I 'mask' an image
anything