SFML community forums

Help => Graphics => Topic started by: blueeyedlion on June 21, 2011, 09:22:29 pm

Title: why is my sprite blurred?
Post by: blueeyedlion on June 21, 2011, 09:22:29 pm
I made a simple sprite in paint, and when I displayed it in SFML, it was a bit blurred.  How do I display the sprite exactly as I made it in paint, to the pixel?
Title: why is my sprite blurred?
Post by: Hiura on June 21, 2011, 09:32:35 pm
searching is fast. :wink:

http://www.sfml-dev.org/forum/viewtopic.php?p=21100&sid=3c8028abdf481cf762cf15e28775c70c
Title: why is my sprite blurred?
Post by: blueeyedlion on June 22, 2011, 01:41:55 am
Thanks, that worked.  My next question is:  is there a way to display a sprite that is not a rectangle?  For example, can I display a sprite that is ring shaped, but not overlap what is beneath the hole?

and I couldn't find anything with search.
Title: why is my sprite blurred?
Post by: Lo-X on June 22, 2011, 04:24:04 am
if you had tried it with a simple png image with transparency, you would know that it works :)
Title: why is my sprite blurred?
Post by: Relic on June 22, 2011, 05:14:42 am
For jpeg or bmp images you can mask the part of the image that must be transparent using Image::CreateMaskFromColor(..) method.