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

Author Topic: Blurry sprites?  (Read 2800 times)

0 Members and 1 Guest are viewing this topic.

Chuckleluck

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Blurry sprites?
« on: April 06, 2012, 05:02:10 pm »
Hello,
Using SFML I've noticed my sprites end up blurry.  For example, this is my source .png file:
http://us.fotolog.com/chuckleluck/124000000000004931/
This is the sprite, assembled in my SFML program:
http://us.fotolog.com/chuckleluck/124000000000004932/?share=1
As you can see, the edges are blurry.  Is there a way to disable this feature?  I want my program to be pixel-perfect.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Blurry sprites?
« Reply #1 on: April 06, 2012, 05:07:26 pm »
image.SetSmooth(false);
Laurent Gomila - SFML developer

Chuckleluck

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Blurry sprites?
« Reply #2 on: April 06, 2012, 06:39:34 pm »
Ah.  Thank you.