SFML community forums

Help => Graphics => Topic started by: Chuckleluck on April 06, 2012, 05:02:10 pm

Title: Blurry sprites?
Post by: Chuckleluck 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/ (http://us.fotolog.com/chuckleluck/124000000000004931/)
This is the sprite, assembled in my SFML program:
http://us.fotolog.com/chuckleluck/124000000000004932/?share=1 (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.
Title: Re: Blurry sprites?
Post by: Laurent on April 06, 2012, 05:07:26 pm
image.SetSmooth(false);
Title: Re: Blurry sprites?
Post by: Chuckleluck on April 06, 2012, 06:39:34 pm
Ah.  Thank you.