SFML community forums
Help => Graphics => Topic started 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?
-
searching is fast. :wink:
http://www.sfml-dev.org/forum/viewtopic.php?p=21100&sid=3c8028abdf481cf762cf15e28775c70c
-
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.
-
if you had tried it with a simple png image with transparency, you would know that it works :)
-
For jpeg or bmp images you can mask the part of the image that must be transparent using Image::CreateMaskFromColor(..) method.