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

Author Topic: How to get rid of the white border on images  (Read 1343 times)

0 Members and 1 Guest are viewing this topic.

Optimus

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to get rid of the white border on images
« on: February 08, 2021, 04:12:35 pm »
I wanted to put a white image in a sfml project but the image is not square which means I have this white border making it seem that there is no image at all. I am fairly new to sfml and i want to get rid of the white border.

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: How to get rid of the white border on images
« Reply #1 on: February 08, 2021, 08:47:52 pm »
Not sure what you mean. A picture of the image and what it looks like in your project would help.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: How to get rid of the white border on images
« Reply #2 on: February 15, 2021, 08:45:33 am »
If SFML draws a border, then you must have set an outline, don't do that.
If your image has a border, then you need to edit your image to not have that border.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything