Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
why is my sprite blurred?
Print
Pages: [
1
]
Author
Topic: why is my sprite blurred? (Read 2512 times)
0 Members and 1 Guest are viewing this topic.
blueeyedlion
Jr. Member
Posts: 61
why is my sprite blurred?
«
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?
Logged
Hiura
SFML Team
Hero Member
Posts: 4321
why is my sprite blurred?
«
Reply #1 on:
June 21, 2011, 09:32:35 pm »
searching is fast. :wink:
http://www.sfml-dev.org/forum/viewtopic.php?p=21100&sid=3c8028abdf481cf762cf15e28775c70c
Logged
SFML / OS X developer
blueeyedlion
Jr. Member
Posts: 61
why is my sprite blurred?
«
Reply #2 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.
Logged
Lo-X
Hero Member
Posts: 618
why is my sprite blurred?
«
Reply #3 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
Logged
My GitHub Repositories
Loïc Boutter
Relic
Newbie
Posts: 43
why is my sprite blurred?
«
Reply #4 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.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
why is my sprite blurred?
anything