Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How can I 'mask' an image  (Read 1726 times)

0 Members and 1 Guest are viewing this topic.

Dark Byte

  • Newbie
  • *
  • Posts: 30
    • View Profile
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)?

Spodi

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://www.netgore.com/
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.

Dark Byte

  • Newbie
  • *
  • Posts: 30
    • View Profile
How can I 'mask' an image
« Reply #2 on: September 29, 2010, 03:40:41 am »
Thank you exactly what I needed.

 

anything