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

Author Topic: Random white border around image  (Read 1827 times)

0 Members and 1 Guest are viewing this topic.

David

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Random white border around image
« on: May 26, 2011, 02:54:33 am »
Hey SFML

When I upload and test an image (PNG) that has transparency, there seems to be a white border around the person.

What is going on?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Random white border around image
« Reply #1 on: May 26, 2011, 08:06:20 am »
That's probably the smooth filter. image.SetSmooth(false) should fix it.
Laurent Gomila - SFML developer

David

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Random white border around image
« Reply #2 on: May 26, 2011, 01:29:39 pm »
Quote from: "Laurent"
That's probably the smooth filter. image.SetSmooth(false) should fix it.


That explains why my 16 bit sprites are a little fuzzy :!:  I hate it when powerpoint makes it look all smooth using it's vector resizing thing.

 

anything